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