public function addSupporter(Supporter $supporter) { $q = $this->_db->prepare('INSERT INTO supporter SET login = :login, mdp = :mdp, email = :email'); $q->bindValue(':login', $supporter->getLogin()); $q->bindValue(':mdp', $supporter->getMdp()); $q->bindValue(':email', $supporter->getEmail()); echo $supporter->getNom(); $q->execute(); }