Jump to content

Creating an hyperlink from a sql query image


suspect_device

Recommended Posts

I have an sql query that pulls an image filename out and displays that image.

 


echo "<img src='/images/thumbnails/{row["Filename"]}' width='75' height='50'>";

 

I have another images folder with the larger pictures, they also have the same filename.

 

What I'm trying to do with no success! is for the thumbnail image displayed from the query be an hyperlink to a blank page and display the larger image.

 

Hope anyone can help.

 

Thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.