diff --git a/html/ajoutReservation.php b/html/ajoutReservation.php index 5831eb8..089c9d2 100644 --- a/html/ajoutReservation.php +++ b/html/ajoutReservation.php @@ -55,6 +55,8 @@ $heure = $_GET['heure']; $requete = "INSERT INTO reservation VALUES($banc,'$date','$login','$heure','$heurefin')"; $exec_requete = mysqli_query($db,$requete); + $requete = "INSERT INTO creneau VALUES('$date')"; + $exec_requete = mysqli_query($db,$requete); echo ""; }else{ //echo "L'ajout n'a pas fonctionné"; diff --git a/html/gestionReservation.php b/html/gestionReservation.php index 8479c89..8b1ca66 100644 --- a/html/gestionReservation.php +++ b/html/gestionReservation.php @@ -100,9 +100,13 @@ $requete = "SELECT personne FROM reservation WHERE moment='$new_date' AND reserve=$banc AND HEUREDEBUT='$heure'"; $exec_requete = mysqli_query($db,$requete); $reponse = mysqli_fetch_all($exec_requete); - $personne = $reponse[0][0]; - echo "