REALLY stuck with this!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kdidymus
Forum Contributor
Posts: 196
Joined: Tue May 13, 2008 3:37 am

REALLY stuck with this!

Post by kdidymus »

Okay.

Final question for now (I promise). Solve this one and I can move on in producing my website without bothering you all!!

I plan to design a HTML site with two iframes. The right hand iframe will hold http://www.didymus.org.uk/display.php?urn=583 (for example). If you click on this link you'll see near the bottom a line which reads "photographs".

I want to place a hyperlink here which will produce a separate PHP file in the LEFT HAND iframe. So when you click on the PHOTOGRAPHS hyperlink for Edwin Cosway the first of his photographs appears in the left hand iframe with a description of it underneath.

So I'll need a PHP file which will use $GET from display.php and display the first of the associated photographs, automatically marry up and display the photo description underneath and THEN produce hyperlinks for moving backwards and forwards through the available images. In Edwin's case I have 8 photographs that I would like to present.

But I have no idea how this PHP file might automatically refresh in response to the user clicking on one of the photo hyperlinks.

Aaaaarrrggghhh!

Kris.
Rovas
Forum Contributor
Posts: 272
Joined: Mon Aug 21, 2006 7:09 am
Location: Romania

Re: REALLY stuck with this!

Post by Rovas »

The easiest way to move the pictures is to set a standard name for them. For example: surname_name_x.jpg where the first two are obivious x represents a number for a single picture from the pictures that contain the person with that name and surname. Another idee is to make a new table which contains the name of the person and the name of pictures that contain him. The description could be put in a file or in the database table mentioned earlier.
Why don' t use a hidden div plus a simple AJAX script (the basic tutorial will teach you how to do it) to post the pictures.
Post Reply