[PHP-DEV] Bug #665 Updated: getting 0 returned by MySQL connection From: Bug Database (php-dev <email protected>)
Date: 08/19/98

ID: 665
Updated by: zeev
Reported By: tom <email protected>
Status: Closed
Bug Type: MySQL related
Assigned To:
Comments:

There can be a thousand things going wrong, but the bottom
line is that the SQL query fails. To discover what's going
on, set error_reporting all the way up before issuing the
SQL query:
error_reporting(E_ALL);

Then, make sure you check the return value from mysql()
is valid - this is always a good practice:

$ine = mysql(...);
if (!ine) {
   echo "SQL query failed: ".mysql_error();
   exit;
}

The chances of this being a bug in PHP are very slim.

Full Bug description available at: http://ca.php.net/bugs.php3?id=665

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>