Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: if (empty record set)

by Anonymous Monk
on Jun 26, 2003 at 16:34 UTC ( [id://269302]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $sth->execute();
    my $recordset = $sth->fetchall_arrayref();
    ...
    else {
       # empty recordset. Do something else.
    }
    
  2. or download this
    my $found = 0;
    while (my $rec = $sth->fetchrow_arrayref()) {
    ...
       # do something else
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found