ESH/waste_category_excel.php

31 lines
1.1 KiB
PHP
Raw Normal View History

2024-10-23 18:28:06 +05:30
<?php
include('includes/config/config.php');
include ('includes/functions.php');
header('Content-Type: application/force-download');
header('Content-disposition: attachment; filename=excel_bio_medical_waste_generation.xls');
//include('pop_up_top.php');
?>
<table border="1">
<?php
$sql_waste_category="select * from waste_category ";
//echo $sql;
$result_waste_category = mysqli_query($conn,$sql_waste_category);
//echo $result;
?><tr bgcolor='#eeeeee'><th width=5% align="center">Sr</th><th width=20% align="center">Waste Category Name</th><th width=15% align="center">Waste Category Description</th>
</tr><?php
$count=1;
while($row_waste_category=mysqli_fetch_array($result_waste_category)){
//$waste_category_name=getTableFieldValue('waste_category','waste_category_name','waste_category_id', $row_bio_medical_waste['waste_category']); ?>
<tr><td align="center"><?php echo $count;?></td><td align="center"><?php echo $row_waste_category['waste_category_name'];?></td><td align="center"><?php echo $row_waste_category['waste_category_desc']?></td>
</tr><?php $count++;
}
?>
</table>
<?php
?>