Page 1 of 1

REALLY stuck with this!

Posted: Fri May 16, 2008 2:27 am
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.

Re: REALLY stuck with this!

Posted: Fri May 16, 2008 4:12 am
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.