Es kommt nurnoch eine weiße seite hier mal die gante index.php: <?php
include("mysql_connect.php");
session_start();
error_reporting(0);
$submit = $_POST['submit'];
$username = sanitize($_POST['Name']);
$password = sanitize($_POST['Passwort']);
if($submit) {
if($username && $password){
$query = mysql_query("SELECT count(*) AS Ergebnis FROM accounts WHERE Name = '$username' AND Passwort = MD5('$password')");
$row = mysql_fetch_array($query);
if($row['Ergebnis'] == 1){
$_SESSION['username'] = $username;
header('location: profile.php');
}else{
echo 'Falsches Passwort und/oder falscher Benutzername!';
}
}else{
echo "Tippe einen Usernamen und ein Passwort ein!";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Evolution Gaming | UCP</title>
<link rel="shortcut icon" type="image/x-icon" href="/test.ico">
<form action='index.php' method='POST'>
<table>
<tr>
<td align="right"><font color="#00FF00">Name: <input type="text" name="Name" value='<?php echo $username?>'/> </td>
</tr>
<tr>
<td><font color="#00FF00">Passwort: <input type="password" name="Passwort"/> </td>
</tr>
<tr>
<td><p align="center"><input type='submit' name="submit" value='Einloggen' /> </p></td>
</tr>
</table>
</form>
</head>
</html>