"; echo ""; echo "NO."; echo "YEAR"; echo "MONTH"; echo "DESCRIPTION"; echo ""; echo ""; $empList = "SELECT * FROM `mar_emp_header` WHERE `emp_id`='$selectedEmpID' ORDER BY `id` ASC"; $empQ = mysqli_query($conn,$empList); while($row = mysqli_fetch_array($empQ)){ $count = $count + 1; $marID = $row['id']; $marDate = explode(" ",$row['date_created']); $marDateA = $marDate[0]; $marYear = $row['mar_year']; $marMon = $row['mar_month']; $marDesc = $row['mar_description']; ?>$count"; echo "". $marYear.""; echo "".$marMon.""; echo "".$marDesc.""; echo "";?> "; } echo ""; $conn->close(); } ?>