25 lines
880 B
PHP
25 lines
880 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=designation_excel.xls');
|
||
|
?>
|
||
|
<table border="1">
|
||
|
<?php
|
||
|
$sql="select * from designation";
|
||
|
//echo $sql;
|
||
|
$result = @mysqli_query($conn,$sql);
|
||
|
//echo $result;
|
||
|
|
||
|
?><tr bgcolor='#eeeeee'><th width="5%">Sr.</th><th width=33%> Designation Name</th><th width=33%>Designation Code</th><th width=33%>Designation Description</th></tr><?php
|
||
|
$i = 0;
|
||
|
while($rowOfEmployee=mysqli_fetch_array($result)){
|
||
|
$i++;
|
||
|
?><tr><td><?php echo $i?></td><td><?php echo $rowOfEmployee['designation_name']?></td><td><?php echo $rowOfEmployee['designation_code']?></td><td><?php echo $rowOfEmployee['designation_desc']?></td></tr><?php
|
||
|
|
||
|
}
|
||
|
?>
|
||
|
</table>
|
||
|
<?php
|
||
|
//include('pdf_footer.php');
|
||
|
?>
|