Good afternoon,
I'm returning data from a table and showing it in CSS, however I need to display 5 blocks per page and every 5 blocks I need to insert a piece 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 that when I show 5 blocks, I can insert this line below
<div style="page-break-before: always !important"></div>