MySQL error reporting


/ Published in: SQL
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $result = mysql_query($query) OR die("<b>A fatal MySQL error occured</b>.\n<br />Query: " . $query . "<br />\nError: (" . mysql_errno() . ") " . mysql_error());

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.