Pagination issue |
[eluser]the_unforgiven[/eluser]
base url is: Code: $config['base_url'] = base_url() . 'clients/reports/list_all/'; i have changed the uri_segment to 5 but returns on next page has page not found
[eluser]InsiteFX[/eluser]
Your not getting your database records with the limit offset. This uses modules and my jQuery extended pagination but shuld still work for normal Code: // --------------------------------------------------------------------
[eluser]the_unforgiven[/eluser]
Thanks InsiteFX but I'm not sure how I would implement this into my code....
[eluser]the_unforgiven[/eluser]
I did print_r() on the following: Code: $per_pg = 10; Code: print_r($config[total_rows]); //returns in this instance 45 rows So why would this not be paginating when navigating to a new set of records and its showing all records on one page.... What have I missed??
[eluser]InsiteFX[/eluser]
See above, you need to get the new records with the page limit and offset. Code: $order_by = 'user_id asc';
[eluser]the_unforgiven[/eluser]
How will that impact on the code then carried through to the view file? This is like a mini search that searches by 2-3 fields then returns results based on the user's input, So I'm not sure adding the query like you said will make any difference other than cause the code not to then work! Or again am I missing understanding something here...? Sorry late night coding and early morning coding doesn't mix, maybe I need sleep, but I have to get the search & pagination working by 9am tomorrow UK time
[eluser]Tpojka[/eluser]
I've just tried to google "codeigniter pagination" and got nice explanation of basic example as second result. First result there is User Guide page for pagination.
[eluser]the_unforgiven[/eluser]
Again already tried all this but still no pagination happens so I've decided against it for now but thanks all for your help |
Welcome Guest, Not a member yet? Register Sign In |