Re: Thumbnail Page
| From: | Robby Russell | Date: | Tue, 03 Feb 2004 16:04:17 +0000 |
| Subject: | Re: Thumbnail Page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-176685@lists.php.net to get a copy of this message | ||
PETCOL typed this on 02/02/2004 03:47 PM:
I think I'm having a "Bad Hair Day" I have a table in my database with all my thumbnail filenames in it. My query pull that out, now I want to display the images in a table, I can get it to go down the page row by row, but I want it to say do five columns of different images and then go down the page with different images? Maybe even have Next and Previous at the bottom would be nice. Anyone got a suggestion, other than a good night sleep ;-) ColI won't tell you how to specifically do it, as that's the fun of programming...but I'll give you a few tips. Let's say you have 20 rocks. You want five columns of images, so you would have 4 rows by 5 images. Essentially, you want a table that looks like so: x x x x x x x x x x x x x x x x x x x x First you would build your recordset. Then you would open up a table and begin your first row. How many rocks would you have to count, before you ended your row and started a new row? So, you would need a method of counting where you were in your recordset to know when to close the table row and when to open up a new one. 1 2 3 4 5 6 7 8 9 10 ... -Robby -- #------------------------------------------------------- # Robby Russell, | Sr. Administrator / Lead Programmer # Command Prompt, Inc. | http://www.commandprompt.com # rrussell@commandprompt.com | Telephone: (503) 667.4564 #-------------------------------------------------------