|
-
Jun 17th, 2002, 01:04 AM
#1
Thread Starter
PowerPoster
Probably really easy - display images
I plan to use a frames page to post my photography online.
In the left frame will be thumnails. Clicking a thumbnail will display the image in the main frame.
All my photos have a unique ID already - that's how I name them. So my database table looks like this.
ImageID
Filename
Year
Subject
Sample data
ImageID = 18482
Filename =18482.jpg
Year = 1995
Subject = Scenic
In the PHP page I plan to have two variables that get pre-pended to the filename
$ThumbPath ='\images\thumbs\'
$ImagePath = '\images\'
What is the code for
1) Populating the images in the left frame based on subject. I know how to write the SQL statement, but how do I make it actually display the thumbs?
The thumb not only needs to be displayed, but it also needs to be a hyperlink.
2) When the viewer clicks the thumb, what is the code for displaying the image?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|