RE: [PHP] Error notification and pretty error page
| From: | Alex Dowgailenko | Date: | Mon, 21 Jan 2002 18:34:27 +0000 |
| Subject: | RE: [PHP] Error notification and pretty error page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81408@lists.php.net to get a copy of this message | ||
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:McWC@rocketmail.com]
> 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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>