I need to display records coming from the database, I'm doing this through a while and inserting each field into a td, but if I do not limit the number of records in the select itself, they all stay on the same line (td). Here is the code:
$select = "SELECT descricao, nome, datahora_final, valor, tipo_valor FROM teste limit 1";
$hoje = date('Y-m-d');
$result = mysqli_query($conexao, $select);
while($exibe = mysqli_fetch_assoc($result)){
echo '<td>' . $exibe['descricao'] . '</td>';
echo '<td>' . $exibe['nome'] . '</td>';
echo '<td>' . $exibe['datahora_final'] . '</td>';
echo '<td>' . $exibe['valor'] . '</td>';
}
mysqli_free_result($result);
If someone has a suggested how to solve it, thank you in advance!