ESH/select_waste_category.php

21 lines
552 B
PHP
Raw Normal View History

2024-10-23 18:28:06 +05:30
<?php
include('includes/config/config.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="select * from waste_category where waste_category_id=$waste_category_id " ;
}
//echo $query_bio_medical_waste;
$result_waste_category = @mysqli_query($conn,$query_waste_category);
$data=array();
while($row_waste_category=mysqli_fetch_assoc($result_waste_category)){
$data=$row_waste_category;
}
echo json_encode($data);
?>