ESH/excel_checkup_category.php

23 lines
817 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=excel_checkup_category.xls');
?>
<table border="1">
<?php
$sql="select checkup_cat_id,checkup_cat_name,checkup_cat_desc,checkup_cat_code from checkup_category";
//echo $sql;
$result = mysqli_query($conn,$sql);
//echo $result;
?><tr><th>Checkup Category Name</th><th>Checkup Category Desc</th><th>Checkup Category Code</th></tr><?php
while($rowOfEmployee=mysqli_fetch_array($result)){
?><tr><td><?=$rowOfEmployee['checkup_cat_name']?></td><td><?=$rowOfEmployee['checkup_cat_desc']?></td><td><?=$rowOfEmployee['checkup_cat_code']?></td></tr><?php
}
?>
</table>
<?php
//include('pdf_footer.php');
?>