Does anyone know how to group data without using group_by in the query?
I need every 10
results
to create a div , that is, 10 records within each div I do not care about values.
<?php foreach($resultados->result() as $resultado){ ?>
<?php for($i = 0; $i <= 10; ++$i){ ?>
<div>
<?php } ?>
<?=$resultado->id?>
<?php for($i = 0; $i <= 10; ++$i){ ?>
</div>
<?php } ?>
<?php }// foreach ?>