} } $age = Age($date_naissance); function Dispo($start_date) { $jour = date('d'); $mois = date('m'); $annee = date('Y'); $dbt = explode('-', $start_date); if ($annee > $dbt[0] || $annee == $dbt[0] && ($mois > $dbt[1] || $mois == $dbt[1] && $jour >= $dbt[2])) { return "immédiate"; } else { return "le " . $dbt[2] . "/" . $dbt[1] . "/" . $dbt[0]; } } $disponibility = Dispo($start_date); //while ($donnees = $reponse->fetch()) //{ ?> <div class="illustration"> <!-- <div class="title"> <h1 itemprop="name"><span><?php echo $first_name; ?> <?php echo $last_name; ?> </span></h1> <div class="mask" style="background-color:#27898A;"></div> <div class="cache"><span><?php echo $first_name;
<div><?php echo $donnees['job']; ?> - <?php echo $donnees['experience']; ?> - <?php echo $donnees['city']; ?> </div> <!-- <div><?php echo $donnees['city']; ?> </div>--> <div class="dispo">Disponible <?php echo Dispo($donnees['start_date']); ?> </div> </div> <div class="lomi_pdt_name"> <div><?php echo $donnees['first_name']; ?> <?php echo $donnees['last_name']; ?> </div> </div> <!-- <div class="hidden_info">