My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
MySQLErrorReporting  
Printing Query Errors
Phase-QA, Phase-Implementation
Updated Jun 1, 2010 by Mattmoon9@gmail.com

Introduction

Instead of reading the "die" statement from a failed query, try the error function while debugging.

Details

Add your content here. Format your content with:

  • Remove the "or die("statement")" portion of the query line.
  • Add the function "mysql_error();" below the query.
  • You can now read the error message returned by the database which will be much more helpful in debugging.
  • Ensure that you replace the "or die()" portion of the original query when you are finished!

Powered by Google Project Hosting