I am trying to debug SQL statements made to a mysql database. Is there a PHP class or a debug mode i can put MYSQL or PHP in?
thank you
Daniel
Yes you can use mysql_error: if (mysql_error) { echo mysql_error; }
There's a suggestion or two on debugging MySQL queries (though it doesn't mention [man]mysql_error[/man]) at the top of this thread.