I am trying to iterate through a series of data and put it into columns. Once 5 columns have data I want to increment the row.
What I have at the moment it sort of works until I get to 6 items and then fails with the row count reverting back to its previous value. I am sure that this is dead easy to do but I have been racking my brains without success. Any pointers most welcome.
This is what I have:
[php]
$col++;
if ($col < 6){$row = 2;}
else if ($col >5 && $col <11){
$row =3; $col =1;
}
[/php]