acctman Posted October 27, 2008 Share Posted October 27, 2008 does anyone have an example of pagenation for images that are retrieved from a database? say if 100 images are retrieved how would i make 20 show per page then page number the rest. Link to comment https://forums.phpfreaks.com/topic/130327-pagenation-for-images/ Share on other sites More sharing options...
genericnumber1 Posted October 27, 2008 Share Posted October 27, 2008 Boo to images retrieved from a database . That said, you could just implement a normal pagination script and pass the id of the image through an <img> tag to be rendered... <?php echo '<img src="myImageRenderer?img=' . $somenumber . '" />'; Link to comment https://forums.phpfreaks.com/topic/130327-pagenation-for-images/#findComment-675962 Share on other sites More sharing options...
acctman Posted October 27, 2008 Author Share Posted October 27, 2008 Boo to images retrieved from a database . That said, you could just implement a normal pagination script and pass the id of the image through an <img> tag to be rendered... <?php echo '<img src="myImageRenderer?img=' . $somenumber . '" />'; its actually image id numbers, the images are actually stored in separate users folders so i just need to grab the ID number and echo a img src put only have 20 or so come out at a time before doing a pagenation setup for the rest. do you have an example of the best way to do a pagenation setup Link to comment https://forums.phpfreaks.com/topic/130327-pagenation-for-images/#findComment-676015 Share on other sites More sharing options...
dropfaith Posted October 27, 2008 Share Posted October 27, 2008 http://www.phpfreaks.com/tutorial/basic-pagination pagination Link to comment https://forums.phpfreaks.com/topic/130327-pagenation-for-images/#findComment-676023 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.