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

24 lines
667 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_side_effect_list.xls');
?>
<table border="1">
<?php
$sql="select sideeffect_id, sideeffect_name from side_effects";
//echo $sql;
$result = mysqli_query($conn,$sql);
?><tr><th>SR </th><th>Side Effects</th></tr><?php
$count=1;
while($rowOfEmployee=mysqli_fetch_array($result)){
?><tr><td><?php echo $count?></td><td><?php echo $rowOfEmployee['sideeffect_name']?></td>
</tr><?php
$count++;
}
?>
</table>
<?php
//include('pdf_footer.php');
?>