note 561 deleted from function.mysql-query by jimw

From: Date: Sat, 08 Dec 2001 22:15:01 +0000
Subject: note 561 deleted from function.mysql-query by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-22283@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"

« previous php.notes (#22283) next »