Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Looping through MySQL

by Theseus (Pilgrim)
on Jul 20, 2002 at 00:31 UTC ( [id://183513]=note: print w/replies, xml ) Need Help??


in reply to Looping through MySQL

Call me crazy, but if I were you I would be using selectrow_array or selectrow_hashref for your data retrieval. For instance:
$href = $dbh->selectrow_hashref("SELECT name,parent FROM category WHER +E id = '$ids'") or die $dbh->errstr; push(@info, $href{'name'});
I believe that would be better suited to your needs.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-19 05:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found