Пример #1
0
 echo '<header>';
 echo '</header>';
 //inclusion des plugins
 echo '<h1>Mon Compte</h1>';
 require 'includes/connect.php';
 include 'includes/ville.php';
 include 'includes/menu.php';
 require 'includes/menuServices.php';
 require 'objets/objetCompte.php';
 echo '<section id="voirCompte">';
 $id = $_SESSION['id'];
 $request = $bdd->query('SELECT * FROM freeCitizenMembres WHERE id ="' . $id . '"');
 while ($donnees = $request->fetch(PDO::FETCH_ASSOC)) {
     //appel au constructeur de l objet compte
     $compte = new Compte($donnees);
     $profil = $compte->login();
     $img = "uploads/" . $profil . ".png";
     echo '<img id="logo" src="' . $img . '">';
     //affichage des infos de la bdd
     echo "id: ";
     echo $compte->id();
     echo "</br>";
     echo "login: "******"</br>";
     echo "adresse mail: ";
     echo $compte->email();
     //problème d'affichage des mails
     echo "</br>";
 }
 $request->closeCursor();