24 lines
667 B
PHP
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');
|
||
|
?>
|