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. it's not right
Code: Select all
$ctime = filectime("$dir/$a_imgї$x]");
if("$dir/$a_imgї$x]" !="")
print "<td align=center><a href=./showpic.php?$a_imgї$x]=$image" target="_self"><img src="$dir/$a_imgї$x]" height=$height width=$width border=0></a></td>\n";
}
if(($x%$col) == ($col-1))
{
print "</tr>\n";
$r++;
}Code: Select all
<?php
echo("<p align="center">$image</p>");
?>Thanks again
Visual (Newbie PHPer)