MrCBofBCinTX
Technical User
I have two identical sections right above this section, only changes are variable names, both of those sections work just fine
I am getting the following errors:
syntax error at /var/ line 840, near "F\n\nundef"
and
Global symbol "$table" requires explicit package name at /var/ line 842.
Adding a my to $table(not needed actually) just bumps problem to next variable down the line.
I've even moved all to another place and get same errors.
This has to be obvious, but I can't see the problem
Code:
print <<EOF
</select>
<select id="vendor_name_selected" name="vendor_name_selected">
<option value="All">All</option>
EOF
undef my $tbl6;
undef my $statement5;
$table = "products2";
$statement5="SELECT DISTINCT vendor_name FROM $table;";
my $sth5 = $dbh->prepare($statement5) || die $dbh->errstr;
my $rc5 = $sth5->execute || die $dbh->errstr;
while ($tbl6 = $sth5->fetchrow_arrayref)
{
print "<option value=\"@$tbl6\">@$tbl6</option>";
}
I am getting the following errors:
syntax error at /var/ line 840, near "F\n\nundef"
and
Global symbol "$table" requires explicit package name at /var/ line 842.
Adding a my to $table(not needed actually) just bumps problem to next variable down the line.
I've even moved all to another place and get same errors.
This has to be obvious, but I can't see the problem