I have this code
while ($row = mysqli_fetch_array ($r, MYSQLI_ASSOC)) {
echo "
<div><h4><a href=\"page.php?id={$row['subcategory_id']}\">{$row['subcategory']}</a></h4>
</div>
";
}
With this while I put on a page a vertical line with subcategories. For ex:
foo
foo
foo
foo
foo
foo
foo
I want to limit those subcategories to 10 and after each 10 to start from the top again, like this:
foo foo foo
foo foo foo
foo foo foo
foo foo foo
foo foo foo
foo foo foo
foo foo foo
Can someone tell how to do that?