Re: How to loop diplays of 4 column of items, every row?

From: Date: Fri, 06 Dec 2002 13:49:00 +0000
Subject: Re: How to loop diplays of 4 column of items, every row?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-127251@lists.php.net to get a copy of this message
> I want to display ONLY thumbnails in table form, incrementing in rows of > 4 columns. By this I mean that I want to write a script which loops in a > way that it displays 4 pictures withdrawn from the database into a row, > and then for the next 4 images, displays them into the next row. Inside your loop, keep a counter. When the counter % 4 = 0, echo out a "</tr>". If you want to put more images on a row, just change the "4" to whatever number you want. Chris

« previous php.general (#127251) next »