23 lines
671 B
PHP
23 lines
671 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_opd.xls');
|
||
|
?>
|
||
|
<table border="1">
|
||
|
<?php
|
||
|
$sql="select role_name,role_description from role_master";
|
||
|
//echo $sql;
|
||
|
$result = mysqli_query($conn,$sql);
|
||
|
//echo $result;
|
||
|
?><tr><th>Role</th><th>Role Description</th></tr><?php
|
||
|
while($rowOfEmployee=mysqli_fetch_array($result)){
|
||
|
|
||
|
?><tr><td><?php echo $rowOfEmployee['role_name']?></td><td><?php echo $rowOfEmployee['role_description']?></td></tr><?php
|
||
|
|
||
|
}
|
||
|
?>
|
||
|
</table>
|
||
|
<?php
|
||
|
//include('pdf_footer.php');
|
||
|
?>
|