Re: [PHP] Login Script: mysql_num_rows(): supplied argument is not a valid MySQL result resource

2010-02-19 Thread David Hutto
--- On Fri, 2/19/10, Ashley Sheridan wrote: From: Ashley Sheridan Subject: Re: [PHP] Login Script: mysql_num_rows(): supplied argument is not a valid MySQL result resource To: "David Hutto" Cc: php-general@lists.php.net Date: Friday, February 19, 2010, 5:34 AM On Fri,

Re: [PHP] Login Script: mysql_num_rows(): supplied argument is not a valid MySQL result resource

2010-02-19 Thread Ashley Sheridan
On Fri, 2010-02-19 at 00:30 -0800, David Hutto wrote: > The following script is supposed to validate a username and password in a > mysql db. When entering the username and password of a preregistered user, I > get the following errors: > > Warning: mysql_num_rows(): supplied argument is not

[PHP] Login Script: mysql_num_rows(): supplied argument is not a valid MySQL result resource

2010-02-19 Thread David Hutto
The following script is supposed to validate a username and password in a mysql db.  When entering the username and password of a preregistered user, I get the following errors: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/login.php on line 24