RE: Question on Registration Method

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux