Hi ,
I dont know if this is the right answer but why dont u do and eval on critical line code ?
like
eval{$sth = $dbh->exeute(); };
if($@){
print "This is an Error :". $dbh->errstr;
exit;
}else {
print "Execute is successful \n";
}[EMAIL PROTECTED] wrote:
Let's assume that the $sth->prepare() was good but something failed at this line:
$sth = $dbh->exeute();
if($sth) is not consistent when connection or something goes bad.
Can you or someone comment further about testing $sth if there are rows?
-thanks
-- Anil Menon MIS Team.
To invent, you need a good imagination and a pile of junk. We have both.
- MIS @ Rhythm & Hues Studios.