public function delete($id)
 {
     $sqlQuery = "DELETE FROM servicerequest WHERE service_no=" . $id;
     $dbContext = new DBContext();
     if ($dbContext->query($sqlQuery)) {
         return true;
     } else {
         return false;
     }
 }
Exemplo n.º 2
0
 public function delete($id)
 {
     $sqlQuery = "DELETE FROM client WHERE client_id=" . $id;
     $dbContext = new DBContext();
     if ($dbContext->query($sqlQuery)) {
         return true;
     } else {
         return false;
     }
 }