Commit 8a5b8a3b authored by uoure's avatar uoure
Browse files

Delete createEventAdmin.php

parent a3589d2b
<?PHP
if (!isset($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_USER'] != "z10" || $_SERVER['PHP_AUTH_PW'] != "kruemel") {
header('WWW-Authenticate: Basic realm="My Realm"');
header('HTTP/1.0 401 Unauthorized');
echo "Passwort oder Benutzername falsch";
exit;
}
$user = 'apache';
$pass = 'e164AzpQx564TpJa';
$db = new PDO('mysql:host=localhost;dbname=reservation', $user, $pass);
$statement = $db -> prepare("INSERT INTO opening (event, date, opentime, closetime, tables) VALUES (?, ?, ?, ?, ?)");
echo $statement->execute(array($_POST["name"], $_POST["date"], $_POST["open"], $_POST["close"], $_POST["tables"]));
?>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment