Jump to content


Photo

debugging help


  • Please log in to reply
2 replies to this topic

#1 Maverickb7

Maverickb7
  • Members
  • PipPipPip
  • Advanced Member
  • 112 posts

Posted 11 April 2006 - 01:42 AM

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.

#2 earl_dc10

earl_dc10
  • Members
  • PipPipPip
  • Advanced Member
  • 71 posts

Posted 11 April 2006 - 01:49 AM

at every query add a die statement with an error
$select = "SELECT * FROM example";
$select_query = mysql_query($select, $link)
   or die("Couldn't select from example".mysql_error() );

tell us what happens then
got a problem? Google helps many of those in need

#3 Maverickb7

Maverickb7
  • Members
  • PipPipPip
  • Advanced Member
  • 112 posts

Posted 11 April 2006 - 01:57 AM

Thank you. I have corrected all the errors. :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users