Blame view

html/supprReservation.php 719 Bytes
9de9bb41   lwadbled   feat(html): Ajout...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  <?php
  if(isset($_GET['banc']) && isset($_GET['moment']) && isset($_GET['personne']) && isset($_GET['heuredebut']) && isset($_GET['heurefin'])){
  	include("connexion.php");
  	$banc = $_GET['banc'];
  	$moment = $_GET['moment'];
  	$personne = $_GET['personne'];
  	$heuredebut = $_GET['heuredebut'];
  	$heurefin = $_GET['heurefin'];
  	$requete =
  	include("connexion.php");
  	$requete = "DELETE FROM reservation WHERE
  		reserve=$banc and moment='$moment' and personne = '$personne' and heuredebut='$heuredebut' and heurefin='$heurefin'";
  	$exec_requete = mysqli_query($db,$requete);
  	$reponse = mysqli_fetch_array($exec_requete);
  	echo "<meta http-equiv=\"refresh\" content=\"0;url=mesReservations.php\">";
  	mysqli_close($db);
  }
  ?>