Pagination jumping by per_page value? |
[eluser]papasnorkle[/eluser]
Hi, I'm trying to whip up some simple pagination for a gallery of photos, but I've come up against a bit of a brainblock. I'm newish to codeigniter and I really can't code all that well to begin with, so apologies for any nonsense that I output. My pagination seems to work in the sense that if I physically type in the address www.domain.com/home/page/ - I get the first 16 results www.domain.com/home/page/1/ - I get the next 16 results www.domain.com/home/page/2/ - I get the next 16 results and so on However, when I click 'Next' in my pagination I get directed to www.domain.com/home/page/16/ then www.domain.com/home/page/32/ and so on I believe the pagination is getting this number either from the per_page value, but that's just a guess. I'm completely out of my league. I'm thinking that all I need to do is kindly ask the next button to point to the next page rather than page 16 and we'd be good, but I can't seem to work out why it's not complying with me. Here's some code that I feel might be relevant to the issue, apologies if it seems disjointed, it's a work in progress. Code: function get_pagination_config($type,$extra1="",$extra2="") Code: function get_photomagraphs($pid="", $pagenum="", &$photomagraphs_check) Your help is hugely appreciated. Thanks. |
Messages In This Thread |
Pagination jumping by per_page value? - by El Forum - 08-23-2012, 04:57 PM
Pagination jumping by per_page value? - by El Forum - 08-23-2012, 05:36 PM
Pagination jumping by per_page value? - by El Forum - 08-23-2012, 05:46 PM
Pagination jumping by per_page value? - by El Forum - 08-23-2012, 11:35 PM
Pagination jumping by per_page value? - by El Forum - 08-24-2012, 02:53 AM
|