Generating a table in php with corresponding cells

A design I was working on used titles above an image in the feature area. The height of the titles needed to be consistent so they would line up.

This is is a trick for iterating cells as a unit so the titles are in a cell above an image. Complicated algorithms are avoided. In this example, the content is stored in two arrays: $tittles and $products.

for ($c =0; $c <= $total; $c=$c+4) {
    "<tr class='image_row'>\n".

Leave a Reply

Your email address will not be published.


This site uses Akismet to reduce spam. Learn how your comment data is processed.