27 lines
841 B
PHP
27 lines
841 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=vaccine_list.xls');
|
|
?>
|
|
<table border="1">
|
|
<?php
|
|
$sql="select * from vaccine_master";
|
|
//echo $sql;
|
|
$result = @mysqli_query($conn,$sql);
|
|
//echo $result;
|
|
|
|
?><tr bgcolor="#eeeeee"><th width="10%">Vaccine Id</th><th width="10%">Vaccine Name</th><th width="6%">Vaccine Company</th><th width="25%">Vaccine Description</th></tr><?php
|
|
$i=0;
|
|
while($row=@mysqli_fetch_array($result)){
|
|
$i++;
|
|
|
|
|
|
|
|
?><tr><td><?php echo $i?></td><td><?php echo $row['vaccine_name']?></td><td><?php echo $row['vaccine_company']?></td><td><?php echo $row['vaccine_desc']?></td></tr><?php
|
|
}
|
|
?>
|
|
</table>
|
|
<?php
|
|
//include('pdf_footer.php');
|
|
?>
|