Hi guys, looked everywhere else for this so posting here as a last resort. I am looking to work out how to do paging in my php file. Basically I have an array of image names which are then used to dynamically create links to images. I want to limit the number of images per page.
Once my array is populated I iterate through it like...
How can I only output say 10 images on the first page, 10 on the second etc. I have done this before using mysql data but i cannot work it out for arrays.
Thanks in advance
How can
Once my array is populated I iterate through it like...
Code:
foreach ($images as $file) {
//$images being my array and $file being each filename
//output links to images
}
How can I only output say 10 images on the first page, 10 on the second etc. I have done this before using mysql data but i cannot work it out for arrays.
Thanks in advance
How can