Maverickb7 Posted April 11, 2006 Share Posted April 11, 2006 hello--I have some code I would like to debug as its not working. Can someone tell me how I would go about debugging it? I'm trying to add a row into a database and its been working up until a couple hours ago. I'm not sure which changed caused it and I didn't record my changes. I can't figure out where the script is breaking done and could use some pointers on correcting my problem. Link to comment https://forums.phpfreaks.com/topic/7082-debugging-help/ Share on other sites More sharing options...
earl_dc10 Posted April 11, 2006 Share Posted April 11, 2006 at every query add a die statement with an error [code]$select = "SELECT * FROM example";$select_query = mysql_query($select, $link) or die("Couldn't select from example".mysql_error() );[/code]tell us what happens then Link to comment https://forums.phpfreaks.com/topic/7082-debugging-help/#findComment-25722 Share on other sites More sharing options...
Maverickb7 Posted April 11, 2006 Author Share Posted April 11, 2006 Thank you. I have corrected all the errors. :) Link to comment https://forums.phpfreaks.com/topic/7082-debugging-help/#findComment-25724 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.