Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Mysql select and store one field

by moritz (Cardinal)
on Sep 07, 2011 at 19:54 UTC ( #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? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2022-11-28 11:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?