<?php include('pdf_header.php'); include('includes/config/config.php'); // include('pop_up_top.php'); ?> <table width="100%"> <tr> <div style="font-size:12px"> <td width="25%" align="left"> Run Date : <?php echo date("d-M-Y"); ?> </td> <td width="50%" align="center" style="font-size:30px"><strong>Hazards</strong></td> <td width="25%" align="left"> User : <?php echo $username ?> </td> </tr> </table> <table border="1"> <?php $sql="select * from hira"; //echo $sql; $result = mysqli_query($conn,$sql); //echo $result; ?> <tr bgcolor='#eeeeee'> <th width="8%">ID</th> <th width="15%">Employee ID </th> <th width="15%">Hazard Category</th> <th width="15%">Hazard Description</th> <th width="10%">Location</th> <th width="10%">Identification Date</th> <th width="15%">Attachments Before Recovery</th> <th width="8%">Likelihood</th> <th width="8%">Severity</th> <th width="8%">Risk Score</th> <th width="8%">Risk Level</th> <th width="15%">Control Measures</th> <th width="10%">Control Date</th> <th width="10%">Review Date</th> <th width="8%">Status</th> </tr> $count=1; while($rowOfEmployee=mysqli_fetch_array($result)){ ?> <tr> <td><?php echo $count; ?></td> <td><?php echo $row['Employee_id']; ?></td> <td><?php echo $row['hazard_category']; ?></td> <td><?php echo $row['hazard_description']; ?></td> <td><?php echo $row['location']; ?></td> <td><?php echo $row['identification_date']; ?></td> <td><?php echo $row['Attachments']; ?></td> <td><?php echo $row['likelihood']; ?></td> <td><?php echo $row['severity']; ?></td> <td><?php echo $row['risk_score']; ?></td> <td><?php echo $row['risk_level']; ?></td> <td><?php echo $row['control_measures']; ?></td> <td><?php echo $row['control_date']; ?></td> <td><?php echo $row['review_date']; ?></td> <td><?php echo $row['status']; ?></td> </tr> <?php $count++; } ?> </table> <?php include('pdf_footer.php'); ?>