View Full Version : Connection between two tables?

10-06-2007, 06:47 PM
How can I open a thumbnail image in full size on a new page, the problem is if somebody search for a name for exsample John Doe, then the information and image (thumbnail) about John Doe will be shown on one page and by cliking on the thumbnail I would like the full size image to be shown on a new page but how do I do that, the part with info and thumb on one page is working ok, I have a database with two tables one with info and thumb and a table with images, I use Dreamweaver 8, PHP and MySQL.
I hope someone can help.

10-07-2007, 09:08 AM
Post your code.

10-09-2007, 08:45 PM
I did something like your wanting but I'm going from a small thumbnail to a large one. Here's the code i used.

it's a java and php script that pulls the correct image and then once click it opens it in a new browser.

<a href="urlName.php?image=<?php echo $row['lg_picture']; ?>" onclick="NewWindow(this.href,'name','<?php echo $row['lg_width']; ?>','<?php echo $row['lg_height']; ?>','yes');return false"><img src="folderName/<?php echo $row['sm_picture'];?>" width="100" height="100" hspace="15" vspace="1" border="0"/>