Is it obvious to anyone what I did wrong?my $pop = qq(SELECT cnt FROM popular WHERE name="testName"); my $sth = $dbh->prepare($pop); $sth->execute() or die $dbh->errstr; my @return; while (@return = $sth->fetchrow_array()) { $count = $return[1]; } print "our return count is $count";
In reply to Simple mysql select not working by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |