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

23 lines
709 B
PHP

<?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=excel_training.xls');
?>
<table class="col-sm-offset-5" border="1">
<?php
$sql="select related_id,health_advice,health_cat from related";
//echo $sql;
$result = mysqli_query($conn,$sql);
//echo $result;
?><tr><th>Health Advice</th><th>Health Category</th></tr><?php
while($rowOfEmployee=mysqli_fetch_array($result)){
?><tr><td><?php echo $rowOfEmployee['health_advice']?></td><td><?php echo $rowOfEmployee['health_cat']?></td></tr><?php
}
?>
</table>
<?php
//include('pdf_footer.php');
?>