<? $db=@mysql_connect("localhost", "username", "password") or header("Location:login.php?xc=3112"); mysql_select_db("database",$db); ?>