Commit 6be5c7fb authored by uoure's avatar uoure
Browse files

Delete getOpeningDates.php

parent cc32b182
$user = 'apache';
$pass = 'e164AzpQx564TpJa';
$db = new PDO('mysql:host=localhost;dbname=reservation', $user, $pass);
$statement = $db -> prepare("SELECT date FROM opening WHERE date >= ? ORDER BY date ASC");
$data = array();
foreach( $statement->fetchAll() as $row ){
array_push($data, $row["date"]);
echo json_encode($data);
\ 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