my @cols = @{$sth->{NAME}};
If you want to receive all rows, you have to do something like
while (my @row = $sth->fetchrow_array) { # use @row here }
Please read the DBI documentation, or if you find that confusing, a short guide to DBI.
In reply to Re: perl mysql and cgi 2
by moritz
in thread perl mysql and cgi 2
by gogoglou
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |