Jump to content

Archived

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

Maverickb7

debugging help

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

×

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.