Bug #665 Updated: getting 0 returned by MySQL connection
| From: | Bug Database | Date: | Wed, 19 Aug 1998 15:55:04 +0000 |
| Subject: | Bug #665 Updated: getting 0 returned by MySQL connection | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-320@lists.php.net to get a copy of this message | ||
ID: 665
Updated by: zeev
Reported By: tom@atari.co.uk
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@lists.php.net
For help: php-dev-help@lists.php.net