37 lines
932 B
PHP
37 lines
932 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=Sub_classification.xls');
|
|
?>
|
|
|
|
<table class="col-sm-offset-5" border="1">
|
|
<?php
|
|
$sql="select subclass_id,subclass_name,subclass_desc from sub_classification";
|
|
//echo $sql;
|
|
$result = mysqli_query($conn,$sql);
|
|
//echo $result;
|
|
?>
|
|
<tr bgcolor='#eeeeee'>
|
|
<th width=33%>Sub Classification Id</th>
|
|
<th width=33%>Sub Classification Name</th>
|
|
<th width=33%>Sub Classification Description</th>
|
|
</tr>
|
|
|
|
<?php
|
|
while($rowOfEmployee=mysqli_fetch_array($result)){
|
|
?>
|
|
|
|
<tr>
|
|
<td><?php echo $rowOfEmployee['subclass_id']?></td>
|
|
<td><?php echo $rowOfEmployee['subclass_name']?></td>
|
|
<td><?php echo $rowOfEmployee['subclass_desc']?></td>
|
|
</tr>
|
|
|
|
<?php
|
|
}
|
|
?>
|
|
</table>
|
|
<?php
|
|
//include('pdf_footer.php');
|
|
?>
|