The link for your image:
<a href="displaypage.php?image=imagename.jpg" target="_blank">Click Here</a>

The code for displaypage.php
        echo "<img src=\"".$_GET["image"]."\">"
Something like this should be all you'll need. A little more HTML here and
there should help you position and size your image.

Hope this helps.

> -----Original Message-----
> From: Brett Lathrope [mailto:brett@;]
> Sent: Tuesday, November 12, 2002 4:44 PM
> Subject: [PHP-DB] Displaying a single picture...
> I have several thumbnail images spread out in my website.  I 
> thought it
> would be cool to write a single PHP script so that when they 
> click on the
> thumbnail, the name of the larger pic would be passed to a 
> PHP script that
> displays it on its own page...I don't even care about a link 
> back, they can
> just click the browser's back arrow.
> How do I get the name stored when they click on the thumbnail?
> My confusion is, I'm seeing this one dimensionally.  You 
> click on an image,
> it calls a link.  But I need to click on the image, store the 
> name of the
> pic I want to display, then call the PHP link.
> I've looked at some of the free Image Lib PHP scripts out 
> there....and they
> all go waaaay overboard on what I'm looking to do.
> Any suggestions?
> Thanks
> -- 
> PHP Database Mailing List (
> To unsubscribe, visit:

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to