";
}
include("connexion.php");
$requete = "SELECT count(*) FROM reservation WHERE
personne = '".$identifiant."'";
$exec_requete = mysqli_query($db,$requete);
$reponse = mysqli_fetch_array($exec_requete);
$count = $reponse['count(*)'];
if($count == 0){
echo "Aucun banc d'essai n'a été réservé";
}else{
echo "";
echo "Vos reservations ($identifiant) :
";
echo "
";
$requete = "SELECT * FROM reservation WHERE
personne = '".$identifiant."'";
$exec_requete = mysqli_query($db,$requete);
$reponse = mysqli_fetch_all($exec_requete);
foreach($reponse as $creneau){
echo "";
echo "Banc : $creneau[0] | Date : $creneau[1] $creneau[3]-$creneau[4]";
echo "";
/* Utilisation pour accès aux reservations */
echo "";
echo "
";
}
}
mysqli_close($db);
?>