When you retrieve only one row, there's no need for a loop. You can simply write
my ($post) = $sth->fetchrow_array;
In reply to Re: Mysql select and store one field
by moritz
in thread Mysql select and store one field
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |