Blame view

html/supprReservation.php 930 Bytes
9de9bb41   lwadbled   feat(html): Ajout...
1
  <?php
13809968   lwadbled   fix(gestionReserv...
2
3
4
5
6
  if(isset($_GET['banc']) && isset($_GET['moment']) && isset($_GET['personne']) && isset($_GET['heuredebut'])){
  	session_start();
  	if(isset($_SESSION['identifiant'])){
  		$identifiant = $_SESSION['identifiant'];
  	}
9de9bb41   lwadbled   feat(html): Ajout...
7
8
9
10
11
  	include("connexion.php");
  	$banc = $_GET['banc'];
  	$moment = $_GET['moment'];
  	$personne = $_GET['personne'];
  	$heuredebut = $_GET['heuredebut'];
13809968   lwadbled   fix(gestionReserv...
12
  	echo "Banc = $banc moment = $moment personne = $personne heuredebut = $heuredebut";
9de9bb41   lwadbled   feat(html): Ajout...
13
14
  	include("connexion.php");
  	$requete = "DELETE FROM reservation WHERE
13809968   lwadbled   fix(gestionReserv...
15
  		reserve=$banc and moment='$moment' and personne = '$personne' and heuredebut='$heuredebut'";
9de9bb41   lwadbled   feat(html): Ajout...
16
17
  	$exec_requete = mysqli_query($db,$requete);
  	$reponse = mysqli_fetch_array($exec_requete);
13809968   lwadbled   fix(gestionReserv...
18
19
20
21
22
  	if($identifiant=="admin"){
  		echo "<meta http-equiv=\"refresh\" content=\"0;url=gestionReservation.php\">";
  	}else{
  		echo "<meta http-equiv=\"refresh\" content=\"0;url=mesReservations.php\">";
  	}
9de9bb41   lwadbled   feat(html): Ajout...
23
24
25
  	mysqli_close($db);
  }
  ?>