Blame view

html/supprReservation.php 926 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
b12775c2   lwadbled   fix(): resolution...
15
  		numero=$banc and jour='$moment' and login = '$personne' and heuredebut='$heuredebut'";
9de9bb41   lwadbled   feat(html): Ajout...
16
  	$exec_requete = mysqli_query($db,$requete);
83dd807a   lwadbled   fix(Reservation):...
17
  	//$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);
  }
  ?>