23 lines
1.2 KiB
PHP
23 lines
1.2 KiB
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_injury.xls');
|
||
|
?>
|
||
|
<table border="1">
|
||
|
<?php
|
||
|
$sql="select appointment_date,complaints,examination_remarks,injury_types,hospital_treatment,referral,followup,remarks from employee_appointment";
|
||
|
//echo $sql;
|
||
|
$result = mysqli_query($conn,$sql);
|
||
|
//echo $result;
|
||
|
?><tr><th>Appointment Date</th><th>Complaints</th><th>Examination Finding</th><th>Injury Type</th><th>
|
||
|
Treatment</th><th>FollowUP</th><th>Referral</th><th>Remarks</th></tr><?php
|
||
|
while($rowOfEmployee=mysqli_fetch_array($result)){
|
||
|
?><tr><td><?php echo $rowOfEmployee['appointment_date']?></td><td><?php echo $rowOfEmployee['complaints']?></td><td><?php echo $rowOfEmployee['examination_remarks']?></td><td><?php echo $rowOfEmployee['injury_types']?></td><td><?php echo $rowOfEmployee['hospital_treatment']?></td><td><?php echo $rowOfEmployee['followup']?></td><td><?php echo $rowOfEmployee['Referral']?></td><td><?php echo $rowOfEmployee['remarks']?></td></tr><?php
|
||
|
|
||
|
}
|
||
|
?>
|
||
|
</table>
|
||
|
<?php
|
||
|
//include('pdf_footer.php');
|
||
|
?>
|