Why are you displaying a different field for every row? Of course your results will be rather disappointing.my @row; my $cnt = -1; while(@row = $sth->fetchrow_array) { $cnt++; print "$row[$cnt] test<br>"; }
Besides, you don't bother to html-escape the results. There might be special characters or substrings for html, in the database fields, and the result might even be invalid html.
In reply to Re: Problems with sth->fetchrow array or another syntax error
by bart
in thread Problems with sth->fetchrow array or another syntax error
by coldfingertips
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |