Re: mysql_num_rows
| From: | Attila Strauss | Date: | Thu, 27 Sep 2001 21:13:24 +0000 |
| Subject: | Re: mysql_num_rows | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-69055@lists.php.net to get a copy of this message | ||
hi,
$result = mysql_query("SELECT * FROM students WHERE username='$login' AND
password='$password'",$db);
if(mysql_num_rows($result))
{
echo "records found";
} else {
echo "no records found";
}
When i do a query from phpmyadmin, it finds one field, yet returns 0 results when i do it from my
own page.
Thanks!
Best regards
Attila Strauss