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. Quote 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 Quote 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. :) Quote Link to comment https://forums.phpfreaks.com/topic/7082-debugging-help/#findComment-25724 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.