ESH/excel_ambulance_category.php

36 lines
943 B
PHP
Raw Permalink Normal View History

2024-10-23 18:28:06 +05:30
<?php //include('pdf_header.php');
include('includes/config/config.php');
//include('pop_up_top.php');
header('Content-Type: application/force-download');
header('Content-disposition: attachment; filename=ambulance_category_list.xls');
?>
<center>
<table border="1" style="text-align: center;" width="100%">
<?php
$sql = "SELECT * from ambulance_category ORDER BY ambulance_category DESC";
$sql = base64_decode($filterkey);
$result = mysqli_query($conn, $sql);
//echo $result;
?>
<tr bgcolor='#eeeeee'>
<td width="10%">Sr.No</td>
<td width="50%">AMBULANCE CATEGORY</td>
</tr>
<?php
$count = 1;
while ($row_staff = mysqli_fetch_assoc($result)) {
extract($row_staff);
?>
<tr>
<td><?php echo $count ?></td>
<td><?php echo $row_staff['ambulance_category'] ?></td>
</tr>
<?php
$count++;
}
?>
</table></center>