mysql_num_rows();
| From: | Sascha Braun | Date: | Wed, 14 Aug 2002 23:35:35 +0000 |
| Subject: | mysql_num_rows(); | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-112628@lists.php.net to get a copy of this message | ||
This is my query with some dummy loginformations:
SELECT * FROM benutzer_db where Benutzername = 'Herbert' AND Passwort = 'hals'
and this is the code i use for the database transaction:
$Query = "SELECT * FROM benutzer_db where Benutzername =
'".$SESSION['nickname']."' ";
$Query .= "AND Passwort = '".$SESSION['password']."'";
$Result = mysql_query($Query, $connect);
if(mysql_num_rows($Result)>'0') {
while(...)...
} else {
...
}
But the branching don't work?