0){ $upass=mysql_result($daten,0,"passwort"); $aname=mysql_result($daten,0,"adminname"); } if(($upass==$_POST['passwort'] & $aname==$_POST['name'])){ $ltime=time(); mt_srand((double)microtime()*1000000); $randval = mt_rand(); $sessionid=md5($randval); mysql_query("update mt_settings set session='$sessionid'"); header ("Location: index2.php?sessionid=$sessionid"); die; }else{ print "
Logindaten falsch !!!
Name:
Passwort:

"; die; } } ?> Adminbereich
Adminbereich
Adminname:
Passwort: