";
echo "$heure | ";
/* Requete pour connaitre l'utilisateur reservant le creneau s'il y en a un */
$requete = "SELECT login FROM reservation WHERE jour='$txtDate' AND numero=$banc AND HEUREDEBUT='$heure'";
$exec_requete = mysqli_query($db,$requete);
$reponse = mysqli_fetch_all($exec_requete);
if($reponse!=null){
$personne = $reponse[0][0];
echo "$personne | ";
}else{
echo " | ";
}
if($new_annee>$annee || ($new_annee>=$annee && $new_mois>=$mois && $new_jour>$jour)){
echo "";
}else if($reponse==null){
echo " | ";
}else if($reponse[0][0]=="admin"){
echo " | ";
}else{
echo " | ";
}
echo " |
";
}
echo "