note 47988 deleted from function.mysql-fetch-row by philip
| From: | philip@php.net | Date: | Mon, 26 Feb 2007 06:53:43 +0000 |
| Subject: | note 47988 deleted from function.mysql-fetch-row by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-123869@lists.php.net to get a copy of this message | ||
Note Submitter: programmer at bardware dot de
----
Hi,
I repeatedly saw samples where mysql_fetch_row(...) was called if the result of mysql_query(...) was
!==false
According to my experiences mysql_fetch_row(...) shouldn too not be called if the result of
mysql_query(...) ===true
That is when you call mysql_query(...) with something like "FLUSH QUERY CACHE" etc.
I wrote a script that allows me to monitor multiple MySQL-Servers. I simply select a bunch of
queries (SHOW VARIABLES etc.) from a ListBox which are executed after another. I added "FLUSH
QUERY CACHE" to the list of queries to execute and got
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource
When calling mysql_fetch_row(...) after the call to mysql_query("FLUSH QUERY CACHE") and
only checking the result for boolean false.
Bernhard