$infos = new Info($donnees); echo '<section id="afficherInfos">'; echo "identifiant: "; echo $infos->id(); echo "</br>"; echo "titre: "; echo $infos->titre(); echo "</br>"; echo "date: "; echo $infos->date(); echo "</br>"; echo "ville: "; echo $infos->ville(); echo "</br>"; echo "theme: "; echo $infos->theme(); echo "</br>"; echo "Auteur: "; echo $infos->idAuteur(); echo "</br>"; echo "votes: "; echo $infos->votes(); echo "</br>"; $texte = $infos->texte(); echo "post: "; echo $texte; echo "</br>"; echo "</br>"; //formulaire d'envois de commentaire require 'includes/includesInfos.php'; }