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

26 lines
811 B
PHP

<?php //include('pdf_header.php');
include('includes/config/config.php');
//include('pop_up_top.php');
include('includes/functions.php');
header('Content-Type: application/force-download');
header('Content-disposition: attachment; filename=excel_injury_type.xls');
?>
<table border="1">
<?php
$sql="select injury_type_name,injury_type_desc,injury_type_code from injury_type";
$result = mysqli_query($conn,$sql);
?><tr><th>Injury Type</th><th>Injury Type Desc</th><th>Injury Type Code</th></tr><?php
while($rowOfEmployee=mysqli_fetch_array($result)){
?><tr><td><?php echo $rowOfEmployee['injury_type_name']?></td><td><?php echo $rowOfEmployee['injury_type_desc']?></td><td><?php echo $rowOfEmployee['injury_type_code']?></td>
</td></tr><?php
}
?>
</table>
<?php s
//include('pdf_footer.php');
?>