35 lines
858 B
PHP
35 lines
858 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,'OHC Plant','DELETE','delete_medical_waste_generation.php');
|
|
error_reporting(E_ERROR | E_PARSE);
|
|
|
|
$waste_id=$_REQUEST['waste_id'];
|
|
$query_bio_medical_waste="";
|
|
if(!empty($waste_id)){
|
|
$query_bio_medical_waste="delete from bio_medical_waste_new where waste_id=$waste_id " ;
|
|
|
|
if (!$result_bio_medical_waste = mysqli_query($conn,$query_bio_medical_waste)) {
|
|
|
|
exit(mysqli_error($conn));
|
|
echo json_encode("FAILURE");
|
|
}else{
|
|
echo json_encode("SUCCESS");
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
?>
|