ESH/excel_hyg_sample_list.php
2024-10-23 18:28:06 +05:30

42 lines
1.1 KiB
PHP

<?php
//include ('pdf_header_reverse.php');
header('Content-Type: application/force-download');
header('Content-disposition: attachment; filename=excel_ailment_system.xls');
include ('includes/config/config.php');
include ('includes/functions.php');
// include('pop_up_top.php');
?>
<html>
<body>
<table width="100%" >
<tr><div style="font-size:12px">
<td width="25%" align="left"> Run Date : <?php echo date("d-M-Y"); ?></td>
<td width="50%" align="center" style="font-size:40px"><strong> Hygiene Sample List</strong></td>
<td width="25%" align="left"> User : <?php echo $username ?></td>
</tr>
</table>
<table border="1">
<?php
$sql="select * from hygiene_sample";
$result = mysqli_query($conn,$sql);
// echo $result;
$count = 1;
?><tr bgcolor="#eeeeee">
<th width=15%>Sr. No</th>
<th width=25%>Hygiene Sample Name</th>
<th width=15%>Hygiene Sample Description</th>
</tr><?php
$count = 0;
while ($row = mysqli_fetch_array($result)) {
?><tr><td><?php echo ++$count ?></td><td><?php echo $row['sample_name']?></td><td><?php echo $row['sample_description']?></td>
</tr><?php
}
?>
</table>