Blame view

html/dispoCreneau.php 409 Bytes
b35ddf61   jdelabre   feat(*): verifica...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  <?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);
  	}
  ?>