forumnz Posted May 10, 2007 Share Posted May 10, 2007 Hi, This page is meant to display all images in a directory. The prob is, it wont display all of them, partly down the page it only shows image names. Help? Also, should I have the page split up? How? Thanks a lot. Quote Link to comment https://forums.phpfreaks.com/topic/50760-displaying-images/ Share on other sites More sharing options...
jitesh Posted May 10, 2007 Share Posted May 10, 2007 There are lots of images then definetly it will take enough time. So you must have to wait. Make Paging. Quote Link to comment https://forums.phpfreaks.com/topic/50760-displaying-images/#findComment-249549 Share on other sites More sharing options...
forumnz Posted May 10, 2007 Author Share Posted May 10, 2007 How can I do that jitesh - thanks. Quote Link to comment https://forums.phpfreaks.com/topic/50760-displaying-images/#findComment-249552 Share on other sites More sharing options...
DanDaBeginner Posted May 10, 2007 Share Posted May 10, 2007 no need to do anything..just wait... its a lot images thats why it takes time to load / display all the images.. oww! sorry about this message.. yesss. search for paging tutorials or you can use some ready made classes.. Quote Link to comment https://forums.phpfreaks.com/topic/50760-displaying-images/#findComment-249555 Share on other sites More sharing options...
jitesh Posted May 10, 2007 Share Posted May 10, 2007 Search at here www.phpclasses.org Make search with keyword "paging" or "paging class" .... Quote Link to comment https://forums.phpfreaks.com/topic/50760-displaying-images/#findComment-249556 Share on other sites More sharing options...
forumnz Posted May 10, 2007 Author Share Posted May 10, 2007 Thanks but that didn't really help. Can you run me through? Quote Link to comment https://forums.phpfreaks.com/topic/50760-displaying-images/#findComment-249559 Share on other sites More sharing options...
jitesh Posted May 10, 2007 Share Posted May 10, 2007 interested in paging ? If yes then post your query you have written to fetch records from db. Quote Link to comment https://forums.phpfreaks.com/topic/50760-displaying-images/#findComment-249571 Share on other sites More sharing options...
forumnz Posted May 10, 2007 Author Share Posted May 10, 2007 I dont have a db.. the script just displays all images from a directory. What can I do? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/50760-displaying-images/#findComment-249600 Share on other sites More sharing options...
jitesh Posted May 10, 2007 Share Posted May 10, 2007 Example : I think you are using glob. Collect all images in array. Suppose you have 300 images Then in array you will get index 0 to 299 Now you want to display 75 image on a page So there are total 4 pages (300/75) at first show image from array of index 0 to 74 from array and give link of page test 2,3,4 Now if user click on link 2 display from array of index 74 to 149 and give link on 1,3,4 Quote Link to comment https://forums.phpfreaks.com/topic/50760-displaying-images/#findComment-249641 Share on other sites More sharing options...
DanDaBeginner Posted May 10, 2007 Share Posted May 10, 2007 did you manually just type <img src="youre image"> in your code? or they dynamically get by php? Quote Link to comment https://forums.phpfreaks.com/topic/50760-displaying-images/#findComment-249714 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.