[thelist] PHP/MySQL results in multiple table cells?

Michele Wandrei michele at inthree.com
Fri Sep 28 08:26:48 CDT 2001


<slowly emerging from lurk mode>

I'm working on a PHP/MySQL project for a friend who is a logo
designer.  His site will include a portfolio section where
potential clients can see his work.  He wants to include one page
that will show thumbnail images of all of the portfolio images --
clicking on the thumbnail will take you to the full size image.
That in itself is a pretty easy task.  The challenge was that he
wants to show the thumbnails in a table with three cells in each
row.

I got it to work quite nicely, but I ended up looping through the
query getting 3 images each time, then dropping them into the
table cells.  Since the query is in the loop, that can add up to
a lot of queries!

It seems like there must be an easier way to do this.  Is there a
way to run one query, then loop through the results array three
rows at a time?

Thanks!

<slinking back to lurk mode>
___________________________________________________
Michele Wandrei
inThree Design
www.inthree.com










More information about the thelist mailing list