note 8642 modified in mysql_num_rows by jmoore
| From: | jmoore@php.net | Date: | Fri, 06 Oct 2000 19:14:39 +0000 |
| Subject: | note 8642 modified in mysql_num_rows by jmoore | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6189@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