problems with mysql_query() and mysql_num_rows()

From: Date: Mon, 10 Jul 2000 16:25:36 +0000
Subject: problems with mysql_query() and mysql_num_rows()
Groups: php.db 
Request: Send a blank email to php-db+get-1010@lists.php.net to get a copy of this message
I'm using some code off of webmonkey to do user validation with a mysql database. They use mysql_num_rows to make sure the result set wasn't 0. PHP is complaining: Warning: Supplied argument is not a valid MySQL result resource in /usr/local/apache/htdocs/auth.php on line 48 And it authorizes everyone. So I did some research and set mysql_query() equal to a value, and then tried to do if (mysql_query()) assuming a false value means it won't validate, but that didn't work either. I'd appreciate any help. Jeffrey Schoolcraft

« previous php.db (#1010) next »