RE: [PHP] mysql_num_rows
| From: | M.A.Bond | Date: | Thu, 21 Nov 2002 16:03:03 +0000 |
| Subject: | RE: [PHP] mysql_num_rows | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-125428@lists.php.net to get a copy of this message | ||
I suppose it's nothing to do with the spelling mistake in the sql statement
(slecet should be select)
Mark
-----Original Message-----
From: empty [mailto:empty@graph-ist.com]
Sent: 21 November 2002 15:57
To: php-general@lists.php.net
Subject: [PHP] mysql_num_rows
Hi guys;
I have a problem (or mistake(s));
for this code
39| $result=mysql_query("slecet * from site_members where
User_Name='$username'");
40| $num_row=mysql_num_rows($result);
41| if($num_row>0) echo("error 46");
as a reult I have unsolved error in my hands :(
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
resource in D:\sites\inc\register.inc on line 40
NOTE: all the fields on the db are empty
anybody knows why?
(PHP 4.2.3 SAPI - MySql 3.23.53 - IIS 5.0 running on WinXP)
thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php