RE: [PHP] PHP- something tha i don't understand
| From: | Boget, Chris | Date: | Tue, 17 Jul 2001 19:32:22 +0000 |
| Subject: | RE: [PHP] PHP- something tha i don't understand | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-58317@lists.php.net to get a copy of this message | ||
> 8:$result = mysql_db_query("users", $query);
> 9:$r=mysql_fetch_array($result);
> 10: $count=$r["count"];
> And the error message is
> Warning: Supplied argument is not a valid MySQL result
> resource in
> c:\inetpub\wwwroot\PhpAndMysqlTest\test2\reg1.php3 on line 9
You need to validate that the query returned a value. Your query
failed somewhere...
Chris