<?php include('includes/config/config.php'); $query=""; if(!empty($_REQUEST['flex_unit_id'])){ $query = " delete from unit_master where unit_id = '".$_REQUEST['flex_unit_id']." ' "; if (!$result = @mysqli_query($conn,$query)) { exit(mysqli_error($conn)); echo json_encode("FAILURE"); }else{ echo json_encode("SUCCESS"); } } ?>