23 lines
698 B
PHP
23 lines
698 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_medical_form_system.xls');
|
|
?>
|
|
<table border="1">
|
|
<?php
|
|
$sql="select form_id,form_name,form_code from medicine_form";
|
|
//echo $sql;
|
|
$result = mysqli_query($conn,$sql);
|
|
//echo $result;
|
|
?><tr><th>Medical form Name</th><th>Medical Form Code</th></tr><?php
|
|
while($rowOfEmployee=mysqli_fetch_array($result)){
|
|
|
|
?><tr><td><?php echo $rowOfEmployee['form_name']?></td><td><?php echo $rowOfEmployee['form_code']?></td></tr><?php
|
|
|
|
}
|
|
?>
|
|
</table>
|
|
<?php
|
|
//include('pdf_footer.php');
|
|
?>
|