17 lines
338 B
PHP
17 lines
338 B
PHP
|
<?php
|
||
|
include('includes/config/config.php');
|
||
|
$query="";
|
||
|
if(!empty($_REQUEST['id'])){
|
||
|
$query = " delete from covid_patient_staying where id = '".$_REQUEST['id']." ' ";
|
||
|
|
||
|
if (!$result = @mysqli_query($conn,$query)) {
|
||
|
|
||
|
exit(mysqli_error($conn));
|
||
|
echo json_encode("FAILURE");
|
||
|
}else{
|
||
|
echo json_encode("SUCCESS");
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|