<?php include('includes/config/config.php'); include('log_entry.php'); $query=""; print_r($_REQUEST['bill_id']); if(!empty($_REQUEST['bill_id'])){ $query = " delete from bill_master where bill_id = '".$_REQUEST['bill_id']." ' "; error_log($query); if (!$result = @mysqli_query($conn,$query)) { die(mysqli_error($conn,)); echo json_encode("FAILURE"); }else{ echo json_encode("SUCCESS"); } }