ohctech_p8/delete_communication.php
2024-10-16 19:18:52 +05:30

29 lines
811 B
PHP

<?php
include ('includes/config/config.php');
include ('includes/functions.php');
include ('log_entry.php');
error_log("Start Printing Request Attributes");
$requestStr = "";
foreach ($_REQUEST as $key => $value) {
$requestStr .= $key . " : " . $value . "\n";
error_log($key . " : " . $value . "<br />\r\n");
}
error_log("End Printing Request Attributes");
save_log($requestStr, 'Communication List', 'DELETE', 'delete_communication.php');
$query = "";
if (!empty($comm_date) && !empty($modified_by)) {
$query = "delete from communication_details where modified_by = '" . $modified_by . "' and comm_date = '" . $comm_date . "' ";
//echo $query;
if (!$result = @mysqli_query($conn, $query)) {
echo json_encode("FAILURE");
exit(mysqli_error($conn));
} else {
echo json_encode("SUCCESS");
}
}
?>