Dozens of ways to do this thumbnail click bigger thing, heres an idea...
create 3 thumbnails call them pic1thumb.jpg pic2thumb.jpg pic3thumb.jpg
create 3 full size images pic1.jpg pic2.jpg pic3.jpg
place these in a folder called images
Now create a file call it thumbs.php and put this
for ($num = 1; $num < 4; $num++){ // num becomes 1..2..3 then ends loop
echo "<a href=\"fullview.php?pic=".$num."\"> <img src=\"images/pic".$num."thumb.jpg\"> </a>";
}
Create a file called fullview.php and put this
<img src="images/pic<? echo $_GET['pic'] ?>.jpg">
So now in the file thumbs.php thats your template, pic is a variable that will be passed in a GET request to the fullview script. Without any bit of understanding of php its dificult to explain, but you should be able to folow this simple example. This is one of many possible ways of acevieing the effect your looking for.