ESH/delete_oxygen_cylinder.php

35 lines
820 B
PHP
Raw Permalink Normal View History

2024-10-23 18:28:06 +05:30
<?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,'Oxygen Cylinder','DELETE','delete_oxygen_cylinder.php');
error_reporting(E_ERROR | E_PARSE);
$id=$_REQUEST['id'];
$query_ambulance_move="";
if(!empty($id)){
$query_ambulance_move="delete from oxygen_cylinder where id=$id" ;
if (!$result_bio_medical_waste = mysqli_query($conn,$query_ambulance_move)) {
exit(mysqli_error($conn));
echo json_encode("FAILURE");
}else{
echo json_encode("SUCCESS");
}
}
?>