Esempio n. 1
0
 public function Delete($object, $objectId)
 {
     $query = "delete from {$object} where Id={$objectId}";
     $nbRows = mysql_query($query) or die(mysql_error() . "\n" . $query);
     if ($nbRows == 0) {
         Exceptions::InternalServerErrorException('Data could not be deleted.');
     }
 }