$result = mysql_query($query) OR die("<b>A fatal MySQL error occured</b>.\n<br />Query: " . $query . "<br />\nError: (" . mysql_errno() . ") " . mysql_error());
Source : http://snipplr.com/view/1710/mysql-error-reporting/
Leave a Reply