in reply to Problems with sth->fetchrow array or another syntax error
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.
|
|---|