note 8642 added to mysql_num_rows
| From: | huelsber at uni-freiburg dot de | Date: | Fri, 22 Sep 2000 01:12:23 +0000 |
| Subject: | note 8642 added to mysql_num_rows | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5293@lists.php.net to get a copy of this message | ||
It should be
$conn = mysql_conect(host, user, password)
$Query = "select id from login where username = '$username' AND password =
'$password'");
$Result = mysql_query( $Query, $conn );
$Numrows=mysql_num_rows($Result);
http://www.php.net/manual/function.mysql-num-rows.php