34 lines
921 B
PHP
34 lines
921 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,'Ambulance Move','DELETE','delete_ambulance_details.php');
|
|
error_reporting(E_ERROR | E_PARSE);
|
|
|
|
$ambulance_id=$_REQUEST['ambulance_id'];
|
|
$query_ambulance_move="";
|
|
if(!empty($ambulance_id)){
|
|
$query_ambulance_move="delete from ambulance_usage_details where ambulance_usage_id=$ambulance_id" ;
|
|
// error_log($query_ambulance_move);
|
|
if (!$result_bio_medical_waste = @mysqli_query($conn,$query_ambulance_move)) {
|
|
|
|
exit(mysqli_error($conn));
|
|
echo json_encode("FAILURE");
|
|
}else{
|
|
echo json_encode("SUCCESS");
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
?>
|