supprReservation.php 719 Bytes
<?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);
}
?>