Hello, hope someone can help me, i'm so close to having this done but am stuck.
What i've got is a image gallery with thumbnails (this bit working fine), what i need it to do is once i click on a thumbnail is for it to open in showpic.php. I'm not quite sure how to tell showpic.php to display the pic clicked on. But below is the code i've made.
$ctime = filectime("$dir/$a_img[$x]");
if("$dir/$a_img[$x]" !="")
print '<td align="center"><a href="./showpic.php?image='.$a_img[$x].'" target="_self"><img src="'.$dir.'/'.$a_img[$x].'" height="'.$height.'" width="'.$width.'" border="0"></a></td>';
}
if(($x%$col) == ($col-1))
{
print "</tr>\n";
$r++;
}
in showpic.php i've got this where i want the image to show.
echo '<p align="center">'<img scr="./.$_GET['image']."></p>';
It seems to be sending the variable ok but i can't get the image to show 🙁 ..
Hope someone can help a newbie 🙂
Thanks
Vi$ual
hope someone can help and tell me where i've gone wrong