Esempio n. 1
0
 protected function add(Member $member)
 {
     $requete = $this->dao->prepare('INSERT INTO T_mem_memberc SET mmc_username = :username, mmc_password = :password, mmc_description = :description, mmc_mail = :mail');
     $requete->bindValue(':username', htmlspecialchars($member->username()));
     $requete->bindValue(':password', htmlspecialchars($member->password()));
     $requete->bindValue(':description', htmlspecialchars($member->description()));
     $requete->bindValue(':mail', htmlspecialchars($member->mail()));
     $requete->execute();
 }