dennislassiter
Erfahrenes Mitglied
PHP:
<?
include("dbconnect.php");
$iphost= "$REMOTE_ADDR";
echo "$iphost<br>";
$query = mysql_query("SELECT user, passwd FROM user WHERE user = '$log_u AND passwd = '$log_p'",$db);
$erg = mysql_fetch_array($query);
if (mysql_num_rows($query) < 0)
{
$online = "INSERT INTO online (ip, user, onoff) VALUES ('$iphost', '$log_u', 'online')";
$eintragen = mysql_query($online);
}
else
echo "Falsches Passwort oder Username";
?>
geht nicht...
;((