Good people,
I have a table like this:
echo "<div id='tabelaN'>
<div id='tabela1'>
<table>
<tr>
<td>Dorsal</td>
<td>Nome</td>
<td>Equipa</td>
<td>Prova</td>
<td>Almoço</td>
</tr>
</table>
</div>";
echo "
<div style='width: 550px; height: 150px; overflow-y: scroll; overflow-x:hidden' id='tabela2'>
<table >";
while($row = mysqli_fetch_array($result)){
echo "<tr >";
echo "<td>" . $row['dorsal'] . "</td>";
echo "<td>" . $row['nome'] . "</td>";
echo "<td>" . $row['equipa'] . "</td>";
echo "<td>" . $row['categoria'] . "</td>";
if($row['almoco'] == 1)
echo "<td>Sim</td>";
else
echo "<td>Não</td>";
echo "</tr>";
}
echo "</table></div></div>";
PS. This is not what I did. I am an intern and have been asked to make changes.