note 81948 rejected from function.mysql-num-rows by nlopess
| From: | nlopess@php.net | Date: | Thu, 20 Mar 2008 20:23:24 +0000 |
| Subject: | note 81948 rejected from function.mysql-num-rows by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-137242@lists.php.net to get a copy of this message | ||
Note Submitter: dartdoran at gmail dot com
----
Can you help me?
I have:
$sql = "SELECT * FROM " . USERS_TABLE . " WHERE
username LIKE
''" . $username . "'' LIMIT 0, 30";
$result = mysql_query($sql);
$result1 = mysql_num_rows($result);
The result:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in ***login.php on
line 75
What can i do?