If i wanted to use the following code to handle database errors (with RaiseError = 1)
How would i get the error raised by the database in the if statement so I can include it in a custom error message? Many thankseval { $dbh->do(...); $dbh->do(...); $dbh->do(...); $dbh->do(...); } if($@) { handle_error(); }
In reply to how do i get the database error from this code by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |