Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: fetchrow_array return value

by exussum0 (Vicar)
on Jan 10, 2004 at 00:46 UTC ( [id://320260]=note: print w/replies, xml ) Need Help??


in reply to fetchrow_array return value

my fave is to have an array for results, populate it. If the array has 0 array elements in it, return as if no rows returned, or continue as such.
my @x = (); while( my @arr = fetchrow_array() ) { push(@x, \@arr ); } if( $#x == .... ) else ....
Not compilable in this form, but it's an idea.

Play that funky music white boy..

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-18 20:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found