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
Replies are listed 'Best First'.
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})
?
[reply]
[d/l]
Re: Re: Re: Did I get any records?
by
TheoPetersen
(Priest)
on Jul 18, 2001 at 01:51 UTC
Sounds good :)
[reply]
In Section
Seekers of Perl Wisdom