Error reporting function?
Posted: Sun Oct 12, 2003 7:10 am
Hi all,
Currently I am have been doing my sql error reporting like this:
I thought of having a function like:
But I have no idea on how to get the name of the function where the error occured. Any idea?
Currently I am have been doing my sql error reporting like this:
Code: Select all
$sql = "SELECT blah FROM blahblah WHERE blahblahblah..."
if (! mysql_query($sql)) die ("SQL statement ї $sql ] failed in function mySQL);Code: Select all
if (! mysql_query($sql) die (reportSQLError());