You have a number of syntax errors. Lets look at the first few lines of your while loop.
while (my \@row = $sth->fetchrow_array) { print "<table id="t01">"; print "<tr>"; if (row[0] eq '1') {
my \@row is wrong. It should be my @row.
print "<table id="t01">"; has a quoting error. You need to either escape the inner double quotes in id="t01" or use single quotes like this id='t01'.
if (row[0] eq '1') is missing the $ on the $row[0] var
In reply to Re^2: Can we use print <<HTML; twice in same file?
by fishmonger
in thread [Solved]: Can we use print <<HTML; twice in same file?
by Perl300
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |