Create a function like error_handling()
in it have it do echo "We're sorry, we are currently experiencing technical
difficulties" blah blah blah and have it email you whatever mysql_error()
says.
then do:

mysql_query("SELECT whatever FROM whatever") or die(error_handling());



> -----Original Message-----
> From: Dan McCullough [mailto:[EMAIL PROTECTED]]
> Sent: January 21, 2002 11:22 AM
> To: PHP General List
> Subject: [PHP] Error notification and pretty error page
>
>
> How can i include error notification, like if an MySQL error
> occurs, to notify me of the offending
> page and what the error was, while having the page die quietly or
> nicely, like an message saying
> that the webmaster will be notified please continue?
>
> =====
> dan mccullough
> --------------------------------------------------------
> "Theres no such thing as a problem unless the servers are on fire!"
>
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to