![]() |
Search with $term and pagination - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Search with $term and pagination (/showthread.php?tid=58277) Pages:
1
2
|
Search with $term and pagination - El Forum - 05-30-2013 [eluser]the_unforgiven[/eluser] I have watched that video and the whole thing does work but what i said here http://ellislab.com/forums/viewreply/1054087/ about it just carrying on through pagination is not what i need Search with $term and pagination - El Forum - 06-06-2013 [eluser]the_unforgiven[/eluser] Kinda got this working, but if i do a search and it only displays 6 results the pagination still shows, which obviously the pagination should only show if there's more than 15 results which is the limit per page i have put on, can anyone advise on what im doing wrong? Search with $term and pagination - El Forum - 06-06-2013 [eluser]jairoh_[/eluser] Code: public function program_search( [u]$of[/u] ) //this should have an offset variable for the pagination base url //to pass Code: public function search($term, [u]$of, $limit[ul] ) //pass the offset and limit PS: the underlined tag didn't work Search with $term and pagination - El Forum - 06-07-2013 [eluser]the_unforgiven[/eluser] Ok i'll try that, thanks ![]() |