<?php //include('pdf_header.php'); include('includes/config/config.php'); include('includes/functions.php'); //include('pop_up_top.php'); header('Content-Type: application/force-download'); header('Content-disposition: attachment; filename=excel_ambulance_list.xls'); ?> <table border="1"> <?php $sql="select * from dignosys_wise_bodysystem"; //echo $sql; $result = mysqli_query($conn,$sql); ?> <tr bgcolor='#eeeeee'> <td align="left" width="2%">sr</td> <td>DIAGNOSIS NAME</td> <td> BODY SYSTEM NAME </td> </tr><?php $count=1; while($row1=mysqli_fetch_array($result)){ ?><tr> <td><?php echo $count ?></td> <td><?php echo getFieldFromTable('ailment_name', 'ailment', 'ailment_id', $row1['ailment_id']) ?></td> <td><?php echo getFieldFromTable('ailment_sys_name', 'ailment_system', 'ailment_sys_id', $row1['ailment_system_id']) ?></td> </tr><?php $count++; } ?> </table> <?php //include('pdf_footer.php'); ?>