I am trying to populate my html table using data from my database but each a new row is added to the table, the table shifts downwards. If for example, 38 rows is added to the table, the table becomes invisible. You have to scroll down to see the table. What might the problem be?
echo "
<div class='container'>
<span class='cc' style='font-weight: bold;'>Count: $stat</span></br></br>
<table class='col-md-9' border='1'>
<th>Agent's name</th>
<th>Student's name</th>
<th>Student's number</th>
<th>Accommodation type</th>
<th>School</th>
<th>Date & Time</th>
";
foreach($db->query($select) AS $result){
echo "
<tr><td>{$result['agent_name']}</td>
<td>{$result['student_name']}</td>
<td>{$result['student_number']}</td>
<td>{$result['accommodation']}</td>
<td>{$result['school']}</td>
<td>{$result['contact_date']}</td>
</tr>
</br>
";
}
echo "
</table>
</div>
";
<th></th>in<tr></tr>too,