feidakila Posted October 22, 2008 Share Posted October 22, 2008 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? Link to comment https://forums.phpfreaks.com/topic/129550-solved-solved-form-and-mysql-error-update-query-use-error_reportinge_all/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.