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

28 lines
821 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=medicine_usage_list.xls');
?>
<table border="1">
<?php
$sql=base64_decode($filterkey);
//echo $sql;
$result = @mysqli_query($conn,$sql);
//echo $result;
?><tr bgcolor="#eeeeee"><th width="10%">Usage Id</th><th width="10%">Usage Name</th><th width="6%">Usage Description</th><th width="25%">Code</th></tr><?php
$i=0;
while($row=@mysqli_fetch_array($result)){
$i++;
?><tr><td><?php echo $i?></td><td><?php echo $row['medicine_usage_cat_name']?></td><td><?php echo $row['cat_desc']?></td><td><?php echo $row['code']?></td></tr><?php
}
?>
</table>
<?php
//include('pdf_footer.php');
?>