Take a look at the following portion of the script:
$picture2=mysql_result($result,$i,"pic2");
$picture3=mysql_result($result,$i,"pic3");
?>
<html>
<head>
<title>Large</title>
</head>
<body>
<table border="1" cellspacing="0" cellpadding="2">
<tr align="center">
<td>
<?
switch ( $_GET['picture'] ) {
case 1:
print <img src="pics/$picture.jpg">
print <img src="pics/thumbnails/$picture2.jpg> <img src="pics/thumbnails/$picture3.jpg">
case 2:
print <img src="pics/$picture2.jpg">
print <img src="pics/thumbnails/$picture.jpg> <img src="pics/thumbnails/$picture3.jpg">
case 3:
ditto
}
?>
</td>
</tr>
I want the first one shown large and the other 2 in thumbs. When I click on a thumb, I want IT to be the large one and the other 2 to be thumbs.
Keep in mind that I have a previous page and IT determines
the value of $picture (The first photo shown) Can you fix my script please?