1
Good afternoon,
I’m returning data from a table and showing in CSS, but I need to display 5 blocks per page and every 5 blocks I need to insert a snippet of code to force the browser to go to another page.
Example:
while($row = mysql_fetch_array($busca)){
echo "<div class='bloco'>
<p class'nome'>FULANO</p>
<address>Endereço</addess>
</div>";
}
I would like when it was shown 5 blocks, I can insert this line below
<div style="page-break-before: always !important"></div>
Just be careful with ifs without
{}
.– Guilherme Nascimento
Managed to elaborate?
– Sr. André Baill
It worked friends, ball show! My first post here on the forum, used to use the Imasters, but there it is very still. Thanks!!
– Bruno Cesar