Make your life easier with:
my $stmt="SELECT distinct name FROM storeCategories"; my $names = $dbh->selectrow_hashref($stmt, undef, $id);
and get a nice human readable hash. Required reading.
In reply to Re: I still haven't found any solution to DBD::mysql::st fetchrow_array failed: fetch() without execute()
by bradcathey
in thread I still haven't found any solution to DBD::mysql::st fetchrow_array failed: fetch() without execute()
by Furple
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |