I see. However, the page uses a file list function to grab the images from a directory of thumbnails on the server, which contains a further directory called "fullsize". That way, when someone clicks on the thumb is opens the fullsize picture relating to it.
Here's the page code:
$str='<div id="gallery"><ul style="width:720px;height:300px;">';
function File_List($path,$forget){
$dir_handle = @opendir($path) or die("Unable to open $path");
$i=1;
$output = array();
while ($file = readdir($dir_handle)){
if($file!="." && $file!=".." && $file!=$forget){
$output[$i]= $file;
$i++;
}
}
closedir($dir_handle);
sort($output);
return $output;
}
$mypics = File_List('gallery/','gallery.php');
for($i=1;$i<=count($mypics)-1;$i++){
$str.='<li><a rel="milkbox" href="http://www.amitypixels.com/zoom/gallery/fullsize/'.$mypics[$i].'" title="Image '.$i.'"><img class="noscale" src="http://www.amitypixels.com/zoom/gallery/'.$mypics[$i].'" border="0" title="Image '.$i.'" alt="Image'.$i.'"></a></li>';
}
$str.="</ul></div>";
echo $str;
I admit, it's a bit of an archaic way of doing it, but I don't currently have a database on this account. I don't suppose there is a way of re-naming the images so that they will get pulled in to the page in a new order? Like I said, it's automatically alphabetically (or numerically) in order. I'm probably asking the impossible here! I guess I'd have to change it to a database...