Re: [phplib] MySQL Errors From: Mike Green (Mike.Green <email protected>)
Date: 08/23/00

You can tailor the function halt($msg) in your extension to DB_Sql to do pretty much whatever you would
like.

E.g. I've tailored it to send me an email when there is a database error in one web site. That can fill
one's email inbox in a hurry, though ;-)

You will also need to set the value of $Halt_On_Error (in your extension to DB_Sql) to whatever is
appropriate to what you want. E.g.:
var $Halt_On_Error = "report"; ## "yes" (halt with message), "no" (ignore errors quietly), "report"
(ignore error, but spit a warning)

Cheers!

Mike Green

Javier Leyba wrote:

> Hi All !
>
> How can I intercept MySQL errors in DB class to show them in a better way to my application users ?
>
> Thanks in advance
>
> Javier

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>