dispoCreneau.php
409 Bytes
<?php
if(isset($_POST['date']) && isset($_POST['banc'])){
$date=$_POST['date'];
$banc=$_POST['banc'];
include("connexion.php");
$requete = "SELECT HEUREDEBUT FROM reservation WHERE
moment = '$date' AND reserve = $banc";
$exec_requete = mysqli_query($db,$requete);
$reponse = mysqli_fetch_all($exec_requete);
foreach($reponse as $value){
echo $value[0]."-";
}
mysqli_close($db);
}
?>