RE: [PHP-DB] Question on Registration Method
| From: | Webmaster | Date: | Sun, 26 Sep 2004 17:58:12 +0000 |
| Subject: | RE: [PHP-DB] Question on Registration Method | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-36405@lists.php.net to get a copy of this message | ||
> I'm getting an error using the
> "mysql_num_rows($result)"
> Warning: mysql_num_rows(): supplied argument is not a
> valid MySQL result resource in
> /home/lurkkcom/public_html/lurktivate.php on line 7
Did you happen to remember to change "fields" in the query string to your
table column names, and then "table" to your table name?
> Why am I counting the number of rows in the table?
> Shouldn't I be looking to see if the code I was passed
> exists within the table ?
If a result is returned, i.e. the number of rows returned is greater than 0,
the page received a valid code and the user exists.
-JC