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