Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Mysql select and store one field

by moritz (Cardinal)
on Sep 07, 2011 at 19:54 UTC ( [id://924655]=note: print w/replies, xml ) Need Help??


in reply to Mysql select and store one field

When you retrieve only one row, there's no need for a loop. You can simply write

my ($post) = $sth->fetchrow_array;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-20 02:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found