Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Did I get any records?

by TheoPetersen (Priest)
on Jul 18, 2001 at 01:31 UTC ( #97465=note: print w/ replies, xml ) Need Help??


in reply to Did I get any records?

It sounds as if $RS is coming back as undef or a plain scalar if the SQL doesn't return any records. You should check the return value of $dbConn->Execute("$SQL") before entering the while loop.


Comment on Re: Did I get any records?
Download Code
Re: Re: Did I get any records?
by THuG (Beadle) on Jul 18, 2001 at 01:36 UTC
    You mean something like while ($RS && !$RS->{EOF})?
      Sounds good :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2015-07-04 05:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls