25 lines
713 B
PHP
25 lines
713 B
PHP
|
<?php
|
||
|
include('includes/config/config.php');
|
||
|
include ('includes/functions.php');
|
||
|
include ('log_entry.php');
|
||
|
|
||
|
$query="";
|
||
|
error_log($_REQUEST['flex_audit_id']."ididid");
|
||
|
error_log($_REQUEST['audit_id']."ididid");
|
||
|
if(!empty($_REQUEST['flex_audit_id'])){
|
||
|
$query = "DELETE from health_audit where id = '".$_REQUEST['flex_audit_id']."'";
|
||
|
error_log($query."delete1");
|
||
|
$queryQ = "DELETE from health_audit_details where id = '".$_REQUEST['flex_csr_id']."'";
|
||
|
error_log($queryQ."delete2");
|
||
|
// error_log($query);
|
||
|
if (!$result = @mysqli_query($conn,$query)) {
|
||
|
exit(mysqli_error($conn));
|
||
|
echo json_encode("FAILURE");
|
||
|
}else{
|
||
|
$resultQ = @mysqli_query($conn,$queryQ);
|
||
|
echo json_encode("SUCCESS");
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|