ohctech_p8/delete_waste_category.php
Dushant Mali 899fb3e65a Upgrade 7 to 8
Upgrade 7 to 8
2024-11-02 18:03:13 +05:30

36 lines
942 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)) {
die(mysqli_error($conn));
echo json_encode("FAILURE");
}else{
echo json_encode("SUCCESS");
}
}
?>