"; } 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 ete reservé"; }else{ echo "Vos reservations :
"; $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 "
"; echo ""; echo "
"; echo "
"; } } mysqli_close($db); /* Utilisation pour accès aux reservations date_default_timezone_set('Europe/Paris'); $ActualDate = date("d/m/Y",time()); $ActualHour = date("h:i",time()); $Periode = date("a",time()); echo "Vrai date : ".$ActualDate." / Vrai heure = ".$ActualHour.$Periode."
"; */ ?>