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

29 lines
857 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 cat_id,cat_name,remarks,status from tbl_categories";
//echo $sql;
$result = mysqli_query($conn,$sql);
//echo $result;
?><tr><th>Category Name</th><th>Remarks</th><th>Status</th></tr><?php
while($rowOfEmployee=mysqli_fetch_array($result)){
if($rowOfEmployee['status']=='1'){
$rowOfEmployee['status']="Active";
}else{
$rowOfEmployee['status']="Inactive";
}
?><tr><td><?php echo $rowOfEmployee['cat_name']?></td><td><?php echo $rowOfEmployee['remarks']?></td><td><?php echo $rowOfEmployee['status']?></td></tr><?php
}
?>
</table>
<?php
//include('pdf_footer.php');
?>