<?php include('includes/config/config.php'); include ('includes/functions.php'); include ('log_entry.php'); $query=""; if(!empty($_REQUEST['flex_csr_id'])){ $query = "DELETE from csr_program where csr_id = '".$_REQUEST['flex_csr_id']."'"; error_log($query); $queryQ = "DELETE from participate_csr_program where csr_id = '".$_REQUEST['flex_csr_id']."'"; error_log($queryQ); // error_log($query); if (!$result = @mysqli_query($conn,$query)) { die(mysqli_error($conn)); echo json_encode("FAILURE"); }else{ $resultQ = @mysqli_query($conn,$queryQ); echo json_encode("SUCCESS"); } } ?>