Don't ask to ask, just ask | |
PerlMonks |
Printing DBI errors from a CGI scriptby PB (Initiate) |
on Apr 18, 2002 at 19:53 UTC ( [id://160324]=perlquestion: print w/replies, xml ) | Need Help?? |
PB has asked for the wisdom of the Perl Monks concerning the following question:
Hi I want to print an error if any DBI functions fail, but all that happens is I get apache errors. In the code below, if the SQL insert statement(or connect for that matter) fails I get an "Internal Server error" from apache instead of my print statement. The apache logs explains why the error occured eg duplicate field, but I want to show the error on the browser. I have the following setup Apache 1.3.23 Mod_perl 1.26 Apache::DBI 0.88 AuthMySQL 2.20 Perl 5.6.0 MySQL 3.23.49 Thanks Paul
Back to
Seekers of Perl Wisdom
|
|