Welcome Guest, Not a member yet? Register   Sign In
Pagination in search result
#3

[eluser]natefons[/eluser]
in your total rows, use the where clause to filter down the search.
Code:
$paginator_config['total_rows']=$this->db->get_where('records', array('search' => $SEARCH_TERMS));


now for the records, same way, u would use the search term.

"Select * from `records` WHERE `search`='SEARCHTERM' LIMIT '".$limit."','".$offset."';";


at least this is how i did it. (i used sql queries, rather than active records)


not sure if this is the simplest.


Messages In This Thread
Pagination in search result - by El Forum - 09-22-2010, 09:31 AM
Pagination in search result - by El Forum - 09-22-2010, 09:40 AM
Pagination in search result - by El Forum - 09-22-2010, 09:46 AM
Pagination in search result - by El Forum - 09-22-2010, 09:48 AM
Pagination in search result - by El Forum - 09-22-2010, 09:52 AM
Pagination in search result - by El Forum - 09-22-2010, 10:00 AM
Pagination in search result - by El Forum - 09-22-2010, 10:10 AM
Pagination in search result - by El Forum - 09-22-2010, 10:16 AM
Pagination in search result - by El Forum - 09-22-2010, 10:24 AM
Pagination in search result - by El Forum - 09-22-2010, 10:34 AM
Pagination in search result - by El Forum - 09-22-2010, 10:34 AM
Pagination in search result - by El Forum - 09-22-2010, 10:43 AM
Pagination in search result - by El Forum - 09-22-2010, 11:39 AM
Pagination in search result - by El Forum - 09-22-2010, 11:59 AM
Pagination in search result - by El Forum - 09-22-2010, 01:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB