Jump to content

[SOLVED] SOLVED: Form and mysql, Error: update query. Use error_reporting(E_ALL)!!!


feidakila

Recommended Posts

Thanks for this great sentence:

 

The most suggested line of PHP code that helps pinpoint why code is not working - error_reporting(E_ALL);

 

I had an unexplainable error with an update query, I've been almost a day trying almost everything, but nothing: no errors, the code working ok excepting the update query that just deleted all the values instead of updating them.

 

I turned on the error reporting including this wise line at the beginning of the scripts

error_reporting(E_ALL);

 

and some warnings came up, the problem: I was printing (echo) the value of a string that wasn't declared, though the line was after the update query, it made my script to fail. Don't know why this happens, but what I'm sure is that I would have saved 2 days if I would have read that sentence before.

 

VOODOO MAGIC ERRORS??...TURN THE ERROR REPORTING ON AND REMOVE ALL ERRORS AND NOTICES.

 

Thanks, and by the way how do i set the thread with the solved icon?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.