<?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)) { die(mysqli_error($conn)); echo json_encode("FAILURE"); }else{ echo json_encode("SUCCESS"); } } ?>