Use a counter when iterating through the results
When counter % (modulus) 3=0 then write a new row
Mark
-Original Message-
From: Simon Allison [mailto:[EMAIL PROTECTED]
Sent: 22 April 2005 15:00
To: php-general@lists.php.net
Subject: [PHP] Repeat Accross, then down
Say for a photo
Say for a photo album with photo paths taken from a database (or anything
from a database for that matter) how can you use PHP to repeat across for
three photos and then add a new row with the next 3 photos and so on and so
on?
2 matches
Mail list logo