<?php // include('pdf_header.php'); include ('includes/config/config.php'); include ('includes/functions.php'); header('Content-Type: application/force-download'); header('Content-disposition: attachment; filename=excel_communication_list.xls'); error_reporting ( E_ERROR | E_PARSE ); ?> <body> <table width="100%" > <tr> <td colspan="9" align="left"> Run Date : <?php echo date("d-M-Y"); ?></td> <td width="25%" align="left"> User : <?php echo $username ?></td> </tr> </table> <table border="1" width="100%"> <?php $sql_comm="SELECT * from communication_details "; //$results_issue_items = mysqli_query($conn,$sql_issue_items); //$sql=base64_decode($filterkey); //$results= mysqli_query($conn,$sql_waste); //$sql=base64_decode($filterkey); $result = mysqli_query($conn,$sql_comm); ?> <strong><tr bgcolor="#eeeeee"><td align="left" width="1%" >Sr.</td><td align="left" width="5%">Communication Date.</td><td align="left" width="5%">Staff Name </td><td align="left" width="18%">Communication Details</td></tr> <?php $count=1; while ($row1= mysqli_fetch_assoc($result)){ $modified_by=$row1['modified_by']; extract($row1); ?> <tr> <td><?php echo $count?></td> <td><?php echo date_format(date_create($row1['comm_date']),"d-M-Y ")?></td> <td><?php echo getTableFieldValue('tbl_users ','user_name','user_id',$modified_by)?></td> <td><?php echo $row1['details']?></td> </tr> <?php $count++; } ?> </table> </body>