If during debug, you set $dbh->{RaiseError} =1, your logs will show what errstr MySQL is throwing... checking for that (instead of SQL-23000 as in my case) should fix this issue...#Check for duplicate insert into database. if ($dbh->errstr()=~/SQL-23000/) { $template->param(duplicate => 1); }
2005-10-01 Retitled by Chady, as per Monastery guidelines
In reply to Re^2: Handling a Database Error
by k_rajesh
in thread Handling a Database Error
by kayak9630
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |