PHP MYSQL query returns false, how to debug
Moderator: General Moderators
PHP MYSQL query returns false, how to debug
If a query simply returns false and the mysql log doesn't have any information, how would you go about debugging this? Thanks.
Re: PHP MYSQL query returns false, how to debug
Code: Select all
$result = mysql_query(...);
if($result === false) {
echo mysql_error($result);
}
Re: PHP MYSQL query returns false, how to debug
Hi
Thanks for the quick reply - will try that straight away - your blog sounds promising too!
Thanks for the quick reply - will try that straight away - your blog sounds promising too!