示例#1
0
 public function update(Objet $obj)
 {
     $req = "UPDATE objets SET idcategorie = '" . $obj->getIdCategorie() . "', " . "nom = '" . $obj->getNom() . "', " . "prixini = '" . $obj->getPrixIni() . "', " . "datedebut = '" . $obj->getDateDebut() . "', " . "datefin = " . $obj->getDateFin() . ", " . "description = " . $obj->getDescription() . ", " . "photo = '" . $obj->getPhoto() . "'  " . " WHERE idobj =" . $obj->getIdObj();
     echo $req;
     return $this->db->exec($req);
 }