ESH/ailment_excel.php

25 lines
859 B
PHP
Raw 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=ailment_list.xls');
?>
<table class="col-sm-offset-5" border="1">
<?php
$sql="select ailment_id,ailment_name,ailment_code,ailment_desc from ailment";
//echo $sql;
$result = mysqli_query($conn,$sql);
//echo $result;
?><tr><th>Ailment Id</th><th>Ailment Name</th><th>Ailment Code</th><th>Ailment Description</th></tr><?php
$i=0;
while($rowOfEmployee=mysqli_fetch_array($result)){
$i++;
?><tr><td><?php echo $i?></td><td><?php echo $rowOfEmployee['ailment_name']?></td><td><?php echo $rowOfEmployee['ailment_code']?></td><td><?php echo $rowOfEmployee['ailment_desc']?></td></tr><?php
}
?>
</table>
<?php
//include('pdf_footer.php');
?>