Johnain Posted November 26, 2007 Share Posted November 26, 2007 Hi all I have been working for the first time this week with PHP. I love it. I now have a bi-lingual web site with e-mails etc. But now I have reached the point where Iwant to integrat a database using My SQL. I know SQL rasonably well, but I am not getting the results that I expect. So this is the point where I need a debugger. I downloaded and installed Gubed Release 0.2.0 onto my PC.It runs. But now is the point where I am overwhelmd by Techochat. Obviously I want to follow the steam on my hosting server. wheb I look into the Gubed help uder "installation" it says ... "Copy the server scripts directory of the Gubed Archive to your webroot." What scripts? What Archive? Quote Link to comment https://forums.phpfreaks.com/topic/78969-solved-debuggers/ Share on other sites More sharing options...
pocobueno1388 Posted November 26, 2007 Share Posted November 26, 2007 What are you using a debugger for? You know you can put a die statement at the end of your queries to catch errors, right? $result = mysql_query($query)or die(mysql_error()); Quote Link to comment https://forums.phpfreaks.com/topic/78969-solved-debuggers/#findComment-399610 Share on other sites More sharing options...
Johnain Posted November 26, 2007 Author Share Posted November 26, 2007 This sounds reall good. Presumably this gives the MySQL message number? Would it give $reslut the value of that messag? Quote Link to comment https://forums.phpfreaks.com/topic/78969-solved-debuggers/#findComment-399613 Share on other sites More sharing options...
pocobueno1388 Posted November 26, 2007 Share Posted November 26, 2007 Here, read more about it here: http://us2.php.net/mysql_error It gives you the actual error, most of the times. If you spelled a field name wrong, it will tell you that the field doesn't exist. Sometimes it will give you a resource error...it just all depends. Quote Link to comment https://forums.phpfreaks.com/topic/78969-solved-debuggers/#findComment-399619 Share on other sites More sharing options...
Johnain Posted November 26, 2007 Author Share Posted November 26, 2007 Thanks a lot. I think I was looking for the comfort of a debugger from my experience of the horrific SAP ABAP/4 and slightly kinder vfp8. I have got use to stepping through code and watching variable values. I will mark this as solved now because I cannot work on this for two days and it's unfair to leave it open. But I will follow your link properly and use what it tells me. Thanks again, really helpful. Quote Link to comment https://forums.phpfreaks.com/topic/78969-solved-debuggers/#findComment-399625 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.