heres the code im using on my page 2. Works great grabs all pics in all product folders.
$files = glob("./images/$code/*.*");
for ($i=0; $i<count($files);
$i++) { $num = $files[$i];
Now on page one I just want the very first picture.. that will be a link to page 2 with all the pictures.
how do I modify this little code to only grab the first file in each folder. Kinda like how K I J J I Ji does it.. page 1 listings.. then page 2 which ive already finished.
I DO NOT KNOW THE FILE NAMES IN EVERY FOLDER.. I just first one.. or random one but just one.. for my page one.
I tried changing $i=0 to $i=1 that just loses a pic out of every folder.
thanks.