Ejemplo n.º 1
0
 public function add(Etudiant $ET)
 {
     $q = $this->_bd->prepare('INSERT INTO Etudiant SET id = :id, Promotion = :Promotion, ' . 'Nom = :Nom, Prenom = :Prenom, Login = :Login, ' . 'Mdp = :Mdp, description = :description');
     $q->bindValue(':id', $ET->getId(), PDO::PARAM_INT);
     $q->bindValue(':Promotion', $ET->getPromotion());
     $q->bindValue(':Nom', $ET->getNom());
     $q->bindValue(':Prenom', $ET->getPrenom());
     $q->bindValue(':Login', $ET->getLogin());
     $q->bindValue(':Mdp', $ET->getMdp());
     $q->bindValue(':description', $ET->getDescription());
 }