Re: custom errors
| From: | Papp Gyozo | Date: | Fri, 16 Nov 2001 17:01:59 +0000 |
| Subject: | Re: custom errors | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74902@lists.php.net to get a copy of this message | ||
>
> I know how to make an error message when the connection is lost with the
> database, with the @ and the OR DIE in the connection with the database.
>
>
> Is there also a way to display a custom error message when this error is
> displaid?
i wrote a more or less simple class to wrap PHP's errorhandling.
http://phpclasses.upperdesign.com/browse.html/package/345
this version needs to be updated. Tidied up version can be found:
http://users.freestart.hu/pgerzson/PHP/ErrorHandler/
>
> "Warning: Supplied argument is not a valid MySQL result resource in
> /opt/guide/www.domain.nl/HTML/inc/menu.php on line 34"
>
> Thanks,
>
> Sjoerd
>
> ________________________________________
> Sjoerd van Oosten
> Digitaal vormgever svoosten@esites.nl
> Datamex E-sites B.V.
> http://www.esites.nl
> Minervum 7368 Telefoon: (076) 5 730 730
> 4817 ZH BREDA Telefax: (076) 5 877 757
> _______________________________________
>
>
> --
> 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
>