Beispiel #1
0
 function Deleteproduct($id)
 {
     $db = new connect();
     $query = "delete from products where ProductID = '{$id}'";
     $db->exec($query);
 }
Beispiel #2
0
 public function delete()
 {
     $sql = "DELETE FROM pais WHERE IdPais = '{$this->IdPais}'";
     return parent::exec($sql);
 }