XP is just a number | |
PerlMonks |
Re: DBI::mysql fetch() without execute() PROBLEMby cfreak (Chaplain) |
on Jan 22, 2002 at 01:00 UTC ( [id://140490]=note: print w/replies, xml ) | Need Help?? |
You get that error because there is a problem with your execute statement. It doesn't complete and then fetch without a proper execute causes your program to die. Changing my $rc = $sth->execute('OH');To: $sth->execute('OH') or die $sth->errstr;Should give you the error. I would venture to guess its in your original statement. BTW I don't believe capturing the output from the execute statement is particularly useful. I've never seen that used Hope that helps Chris
In Section
Seekers of Perl Wisdom
|
|