$host = "?????????"; # MySQL Host
$user = "?????????"; # MySQL benutzername
$password = "?????"; # MySQL Passwort
$dbname = "???????"; # MySQL Datenbankname
$tabelle = "??????"; # TABELLE
$dbverbindung = mysql_connect ($host, $user, $password);
$dbanfrage = "select nick,password from $tabelle where nick = '$_POST[nick]' and passwort = '$_POST[passwort]' ";
$fetchdata = mysql_query($dbanfrage);
if($fetchdata) {
// Anzahl der Reihen pruefen
$number = mysql_num_rows($fetchdata);
if ($number == "0") { echo "Du nicht</p>"; }
else
{ header('location: index.php'); }
}