5
How can I enter a header for each N records? Type ...
<h1>CABECALHO</h1>
     Cadastro 1
     Cadastro 2
     Cadastro 3
     Cadastro N
<h1>CABECALHO</h1>
     Cadastro ..
     Cadastro ..
     Cadastro ..
     Cadastro N
<h1>CABECALHO</h1>
     Cadastro ..
     Cadastro ..
     Cadastro ..
     Cadastro N
<h1>CABECALHO</h1>
     Cadastro ..
     Cadastro ..
     Cadastro ..
     Cadastro N
Mysql does this in the list of records.
make a
$i=0loop$i++and when$i===4you print the header.– Papa Charlie
What is different from this one? http://answall.com/questions/15869/executar-script-a-cada-1000-registros-consulted
– Maniero
@Bigown In both the answer is the module operator, but this goes straight to the point. I think I can live with both, but if I were to close I would close the other as a duplicate of this.
– bfavaretto