ohctech_p8/excel_salt.php

32 lines
768 B
PHP
Raw Normal View History

2024-10-16 19:18:52 +05:30
<?php //include('pdf_header.php');
include('includes/config/config.php');
include('includes/functions.php');
//include('pop_up_top.php');
header('Content-Type: application/force-download');
header('Content-disposition: attachment; filename=excel_sickness.xls');
?>
<table width="100%">
<?php
$sql = base64_decode($filterkey);
error_log("pdf fitness:" . $sql);
$result = mysqli_query($conn, $sql);
?><tr bgcolor='#eeeeee'>
<th>Sr.No</th>
<th>Salt Name</th>
</tr>
<?php $count = 1;
while ($rowOfEmployee = mysqli_fetch_array($result)) {
?><tr>
<td align='center'><?php echo $count ?></td>
<td align='center'><?php echo $rowOfEmployee['salt_name'] ?></td>
</tr><?php
$count++;
}
?>
</table>