Hi,
Is there a way to log errors in MySQL with PHP and automatically send me an email whenever a MySQL_QUERY fails?
I currently use this:
MYSQL_QUERY($action,$db) OR DIE(send_em());
But ideally I need to have the page still output to the browser and thus I need to get rid of the DIE part?
Is there something I can do to call a function that will send me an error email through PHP whenever a MYSQL_QUERY fails without using the DIE() function?
Thanks!!!
Is there a way to log errors in MySQL with PHP and automatically send me an email whenever a MySQL_QUERY fails?
I currently use this:
MYSQL_QUERY($action,$db) OR DIE(send_em());
But ideally I need to have the page still output to the browser and thus I need to get rid of the DIE part?
Is there something I can do to call a function that will send me an error email through PHP whenever a MYSQL_QUERY fails without using the DIE() function?
Thanks!!!