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

27 lines
721 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_category.xls');
?>
<table border="1">
<?php
$sql="select * from config";
//echo $sql;
$result = @mysqli_query($conn,$sql);
//echo $result;
?><tr bgcolor="#eeeeee"><th width="10%">SR NO.</th><th width="10%">KEY NAME</th><th width="25%">VALUE</th></tr><?php
$i=0;
while($row=@mysqli_fetch_array($result)){
$i++;
?><tr><td><?php echo $i?></td><td><?php echo $row['key_name']?></td><td><?php echo $row['value']?></td></tr><?php
}
?>
</table>
<?php
//include('pdf_footer.php');
?>