23 lines
787 B
PHP
23 lines
787 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_issuepoint.xls');
|
|
?>
|
|
<table border="1">
|
|
<?php
|
|
$sql="select point_id,type_name,name,location,code from medicine_issue_point";
|
|
//echo $sql;
|
|
$result = mysqli_query($conn,$sql);
|
|
?><tr><th>Issue Type </th><th>Name</th><th>Location</th><th>Code</th></tr><?php
|
|
while($rowOfEmployee=mysqli_fetch_array($result)){
|
|
|
|
?><tr><td><?php echo $rowOfEmployee['type_name']?></td><td><?php echo $rowOfEmployee['name']?></td><td><?php echo $rowOfEmployee['location']?></td><td><?php echo $rowOfEmployee['code']?></td>
|
|
</tr><?php
|
|
|
|
}
|
|
?>
|
|
</table>
|
|
<?php
|
|
//include('pdf_footer.php');
|
|
?>
|