ohctech_p8/delete_sop_document.php
Dushant Mali 899fb3e65a Upgrade 7 to 8
Upgrade 7 to 8
2024-11-02 18:03:13 +05:30

33 lines
839 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,'SOP Documents','DELETE','delete_sop_document.php');
error_log("DELETEID::" .$_REQUEST['delete_id']);
$query="";
if(!empty($_REQUEST['delete_id'])){
$query = " delete from sop_document where medical_doc_id = '".$_REQUEST['delete_id']." ' ";
error_log("DELETION::" .$query);
if (!$result = @mysqli_query($conn,$query)) {
die(mysqli_error($conn));
echo json_encode("FAILURE");
}else{
echo json_encode("SUCCESS");
}
}
?>