note 561 modified in mysql_query by ronabop
| From: | ronabop@php.net | Date: | Sat, 09 Sep 2000 03:52:21 +0000 |
| Subject: | note 561 modified in mysql_query by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4607@lists.php.net to get a copy of this message | ||
As is often discussed on the mailing list, a return of 0 to this command means an improperly written
query. The query FAILED, not "succeeded but returned no rows".
"mysql_query() would fail only if your query was invalid, for example, if you wrote it in
invalid syntax ('delete foo in bar' instead of 'delete foo from bar'), or if it
was semantically incorrect, e.g. if you used a field name in the WHERE clause that doesn't
belong to the table.
Zeev"
http://www.php.net/manual/function.mysql-query.php