I can not make a loop in the table, it is looping every search in the database.
$dbc = mysqli_connect('senha_adm');
$query = "select carro, barco, aviao, moto, triciclo, velotrou, dataCadastro from agencia";
$result = mysqli_query($dbc, $query);
while ($row = mysqli_fetch_array($result)) {
?>
<table id="tabela">
<tr>
<td>Carros</td>
<td>Barcos</td>
<td>Avioes</td>
<td>Motos</td>
<td>triciclos</td>
<td>Velotroes</td>
</tr>
<tr>
<td><?php echo $row['carro']; ?></td>
<td><?php echo $row['barco']; ?></td>
<td><?php echo $row['aviao']; ?></td>
<td><?php echo $row['moto']; ?></td>
<td><?php echo $row['triciclo']; ?></td>
<td><?php echo $row['velotrou']; ?></td>
</tr>
<?php
}
echo " </table>";