<?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, 'abnormality value name Master', 'DELETE', 'delete_abnormality_name.php');
// error_reporting(E_ERROR | E_PARSE);

$id = $_REQUEST['id'];
error_log($id);
$query = "";
if (!empty($id)) {
    $query = "delete  from abnormality where abnormality_id=$id ";
    error_log($query);

    if (!$result_bio_medical_waste = @mysqli_query($conn, $query)) {

        exit(error_log(mysqli_error($conn)));
        echo json_encode("FAILURE");
    } else {
        echo json_encode("SUCCESS");
    }
}