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

27 lines
800 B
PHP

<?php
//include('pdf_header.php');
// error_reporting(E_ERROR | E_PARSE);
include('includes/config/config.php');
include('log_entry.php');
header('Content-disposition: attachment; filename=excel_checkup.xls');
?>
<table border="1">
<?php
$sql="select checkup_date,bmi,isHyperTensed,health_score from checkup_form";
//echo $sql;
error_log("query: ".$query);
$result = mysqli_query($conn,$sql);
//echo $result;
?><tr><th>checkup Date</th><th>BMI</th><th>Hyper Tensed</th><th>Score</th>
</tr><?php
while($rowOfEmployee=mysqli_fetch_array($result)){
?><tr><td><?= $rowOfEmployee['checkup_date']?></td><td><?=$rowOfEmployee['bmi']?></td><td><?=$rowOfEmployee['isHyperTensed']?></td><td><?=$rowOfEmployee['health_score']?></td>
</tr><?php
}
?>
</table>
<?php
//include('pdf_footer.php');
?>