XP is just a number | |
PerlMonks |
Re: fetchrow_array return valueby mpeppler (Vicar) |
on Jan 10, 2004 at 00:05 UTC ( [id://320254]=note: print w/replies, xml ) | Need Help?? |
If you use fetchrow_array() like that then if there are one or more rows returned then the first one is lost, because you threw it away in the if(). Why not do something like: As for using $sth->rows(), the problem is that for most database engines the number of rows affected by a SELECT query can only be determined once all of the rows have been fetched... Michael
In Section
Seekers of Perl Wisdom
|
|