ESH/delete_task.php
2024-10-23 18:28:06 +05:30

30 lines
801 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,'Task Master','DELETE','delete_task.php');
$task_id=$_REQUEST['task_id'];
error_log($task_id);
$query_task_move="";
if(!empty($task_id)){
$query_task_move="delete from task_master where task_id=$task_id" ;
if (!$result_bio_medical_waste = @mysqli_query($conn,$query_task_move)) {
exit(error_log(mysqli_error($conn)));
echo json_encode("FAILURE");
}else{
echo json_encode("SUCCESS");
}
}
?>