I need to display images from a dir on a webpage. Ive managed to read the names of all the files in the dir, and load the names into an array. From there i can display all the images on one page. But i would like to limit it to ten images per page, with a next button the see the following pages. Thats my only problem. The loop that limits the images displayed, because as soon as there are less than 10 i get empty image boxes. If someone could post an example and this loop.
Thank you.