Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Simple mysql select not working
by tangent (Parson) on Nov 22, 2013 at 03:27 UTC | |
|
Re: Simple mysql select not working
by Kenosis (Priest) on Nov 22, 2013 at 03:58 UTC | |
|
Re: Simple mysql select not working
by marinersk (Priest) on Nov 22, 2013 at 06:55 UTC | |
|
Re: Simple mysql select not working
by Anonymous Monk on Nov 22, 2013 at 17:56 UTC |