36 lines
943 B
PHP
36 lines
943 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,'Bio Waste','DELETE','delete_waste_category.php');
|
||
|
include('log_entry.php');
|
||
|
error_reporting(E_ERROR | E_PARSE);
|
||
|
|
||
|
$waste_category_id=$_REQUEST['waste_category_id'];
|
||
|
$query_waste_category="";
|
||
|
if(!empty($waste_category_id)){
|
||
|
$query_waste_category="delete from waste_category where waste_category_id=$waste_category_id " ;
|
||
|
error_log($query_waste_category);
|
||
|
if (!$result_waste_category = @mysqli_query($conn,$query_waste_category)) {
|
||
|
|
||
|
exit(mysqli_error($conn));
|
||
|
echo json_encode("FAILURE");
|
||
|
}else{
|
||
|
echo json_encode("SUCCESS");
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
?>
|