Get unlimited row count and paginated results from the database using CodeIgniter
When I search for a pages in my categories it displays the result of what pages are in that category. For testing I have set the limit per page to 1 on my search_for function. Question/Problem: If there a only 2 pages that show up in result for some reason the pagination links display 5 links where it should only display 2 pagination links. functions for model are on controller for testing. I think the problem lies where the db->like and db->or_like in model. Why does it display 5 pagination links when should only display 2 if only 2 results found. Controller <?php class Category_search extend
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.