Re: PHP codes

From: Date: Thu, 29 Jul 2010 07:08:34 +0000
Subject: Re: PHP codes
References: 1  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-8634@lists.php.net to get a copy of this message
Hi. You should check the C:\xampp\htdocs\portal\checklogin.php file at the 26 line number. I "think" that you just called the mysql_num_rows() function with the wrong parameter. You should pass the result of the mysql_query() call (but before that, you should check the mysql_error, because if an error occurs, the mysql_query will return FALSE). So I think this is an RTFM problem. Tyrael On Thu, Jul 29, 2010 at 8:24 AM, Melissa Lee <melissa.lhs@gmail.com> wrote: > Hello, > I have encountered a problem while trying to do the php coding for login > page. This is the error that I encountered: > > Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given > in C:\xampp\htdocs\portal\checklogin.php on line 26 > Wrong Username or Password > > Please advise me on what I should do. Thank you. > > -- > Best Regards, > Melissa Lee > > -- > PHP Webmaster List Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.webmaster (#8634) next »