Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Is there an easier way to recieve one piece of data from a mysql query? I really am only selecting one field. (SELECT post FROM tablename WHERE url="$url").
All I'm trying to do is get that variable to $this. All the references I see online show
All I'm trying to do is get that variable to $this. All the references I see online show
Which seems above and beyond what I need it to do. Is there any better way to do what I need?while (@row = $sth->fetchrow_array) { print "@row\n" }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Mysql select and store one field
by moritz (Cardinal) on Sep 07, 2011 at 19:54 UTC | |
Re: Mysql select and store one field
by nedals (Deacon) on Sep 08, 2011 at 00:12 UTC | |
Re: Mysql select and store one field
by suaveant (Parson) on Sep 07, 2011 at 20:01 UTC | |
Re: Mysql select and store one field
by Anonymous Monk on Sep 07, 2011 at 21:02 UTC |
Back to
Seekers of Perl Wisdom