public function update(Touite $Touite) { $q = $this->_db->prepare('UPDATE touites SET texte = :texte, ladate=NOW() WHERE idMsg = :id'); $q->bindValue(':ladate', $Touite->getLaDate); $q->bindValue(':texte', $Touite->getTexte(), PDO::PARAM_STR); $q->bindValue(':id', $Touite->getId(), PDO::PARAM_INT); $q->execute(); }