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

23 lines
808 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_medicine.xls');
?>
<table border="1">
<?php
$sql="select frequency_id,frequency_description,medicine_frequency,qty from medicine_frequency";
//echo $sql;
$result = mysqli_query($conn,$sql);
?><tr><th>Frequency Description </th><th>Medicine Frequency</th><th>Daily Calculated Quantity</th></tr><?php
while($rowOfEmployee=mysqli_fetch_array($result)){
?><tr><td><?php echo $rowOfEmployee['frequency_description']?></td><td><?php echo $rowOfEmployee['medicine_frequency']?></td><td><?php echo $rowOfEmployee['qty']?></td>
</tr><?php
}
?>
</table>
<?php
//include('pdf_footer.php');
?>