Re: [PHP] Thumbnail Page

2004-02-03 Thread Robby Russell
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 ;-)

Col

I 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
# [EMAIL PROTECTED] | Telephone: (503) 667.4564
#---
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Thumbnail Page

2004-02-02 Thread PETCOL
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 ;-)

Col

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php