[eluser]tnathos[/eluser]
hi, i have a select to my db, this select retunr 12 results but have only 1 field.
so i need put the data, in a table not vertical else horizontal mode, printing 1 file each 3 items. example
1 2 3
4 5 6
7 8 9
10 11 12
now how i can do this?
i have this but doesnt works..
Code:
<?php
<?php
foreach($img_elite->result() as $row):
$j=0;
echo '<tr>';
echo '<td><img >media .'"/></td>';
while($j <= 2){
foreach($img_elite->result() as $row):
echo'<td><img >media .'"/></td>';
endforeach;
$j++;
}
endwhile;
echo '</tr>';
endforeach; ?>