On Thursday 15 August 2002 07:35, Sascha Braun wrote: > 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') {
Try: if (mysql_num_rows($Result) > 0) { -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* I tell them to turn to the study of mathematics, for it is only there that they might escape the lusts of the flesh. -- Thomas Mann, "The Magic Mountain" */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php