in reply to trapping database errors
$answer = $sth->execute(); if($answer) { $sth->finish if $sth; } else { $mailbody .= "Cannot insert: ".$dbh->errstr."\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: trapping database errors
by venki (Acolyte) on Feb 12, 2003 at 16:44 UTC |