<?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=history_list.xls');
$hiddenid=$_REQUEST['hiddenid'];
?>

<table class="col-sm-offset-5" border="1">
<?php 
$sql="select date_absent,date_return,agency,sickness_name,des from sickness where emp_id='".$hiddenid."'";
 //echo $sql;
 $result = mysqli_query($conn,$sql);
  //echo $result;
  ?><tr><th>Date Absent </th><th>Return Absent</th><th>Agency</th><th>Name</th><th>Discription</th></tr><?php 
while($rowOfEmployee=mysqli_fetch_array($result)){
  ?><tr><td><?php  echo $rowOfEmployee['date_absent']?></td><td><?php  echo $rowOfEmployee['date_return']?></td><td><?php  echo $rowOfEmployee['agency']?></td><td><?php  echo $rowOfEmployee['sickness_name']?></td><td><?php  echo $rowOfEmployee['des']?></td></tr><?php 

}
?>
</table>
<?php 
//include('pdf_footer.php');
?>