# of items per table row.
I want PHP to organize a certain number of items in a row of a table and jump to the next row.
This is my table:
Code:
<?php do { ?>
<table cellspacing="0" cellpadding="0">
<tr>
<td><a href="<?php echo $images_dir ?>/<?php echo $row_call_photos['photo_filename']; ?>" target="_blank"><img src="<?php echo $images_dir ?>/tb_<?php echo $row_call_photos['photo_filename']; ?>" border="0" /></a></td>
</tr>
</table>
<?php } while ($row_call_photos = mysql_fetch_assoc($call_photos)); ?>
Help and leads will be greatly appreciated. :D