Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: fetchrow_array return value

by exussum0 (Vicar)
on Jan 10, 2004 at 00:46 UTC ( #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? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2022-09-29 16:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (125 votes). Check out past polls.

    Notices?