0
Good, guys. I want to list my database data in an HTML table, but this in three columns <td>
, when I maxed this value, it would create one more line <tr>
.
Example:
<?php
foreach($produtos as $produto):
?>
<td>
<div class="item">
<img src="produtos/imagens/<?=$produto['imagem']?>" class="imagem_item">
<div class="espaco_nome">
<span class="titulo_item"><?=$produto['nome']?></span>
</div>
<span class="preco_item">R$ <?=$produto['preco']?></span>
</div>
</td>
<?php
endforeach;
?>
In this case, it would print everything in the same row of the table. How do I make it create three columns and then create one more row?
Related : http://answall.com/questions/61347/nova-linha-na-tabela-a-cada-3-colunas/61348
– Guilherme Lautert
agree @Guilhermelautert but I have already left a reply.
– Hiago Souza