Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: I still haven't found any solution to DBD::mysql::st fetchrow_array failed: fetch() without execute()

by bradcathey (Prior)
on Dec 11, 2008 at 02:33 UTC ( [id://729583]=note: print w/replies, xml ) Need Help??


in reply to I still haven't found any solution to DBD::mysql::st fetchrow_array failed: fetch() without execute()

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.

—Brad
"The important work of moving the world forward does not wait to be done by perfect men." George Eliot
  • Comment on Re: I still haven't found any solution to DBD::mysql::st fetchrow_array failed: fetch() without execute()
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://729583]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-04-16 17:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found