Re: mysql_fetch_array(): supplied argument is not a valid MySQL result resource
| From: | Philip Olson | Date: | Fri, 13 Jun 2003 03:12:20 +0000 |
| Subject: | Re: mysql_fetch_array(): supplied argument is not a valid MySQL result resource | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151325@lists.php.net to get a copy of this message | ||
It has to do with you assuming everything will work 100%
of the time. It won't. mysql_query() returns false on
failure, check for that. Read this recent thread:
http://marc.theaimsgroup.com/?l=php-general&m=105517588819420
Also, this faq explains it:
http://www.php.net/manual/en/faq.databases.php#faq.databases.mysqlresource
Btw, what do you expect: $register_globals; to do in your
code? It won't do anything useful.
Regards,
Philip