Commit a3589d2b authored by uoure's avatar uoure
Browse files

Delete cancelReservation.php

parent 51d53725
<?PHP
$user = 'apache';
$pass = 'e164AzpQx564TpJa';
$db = new PDO('mysql:host=localhost;dbname=reservation', $user, $pass);
$statement = $db -> prepare("DELETE r FROM reservation r, opening o WHERE code = ? AND r.opening = o.id AND (date > ? OR (date = ? AND start > ?))");
echo $statement->execute(array($_POST["code"], date("Y-m-d"), date("Y-m-d"), date("H:i")));
?>
\ 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