Welcome Guest, Not a member yet? Register   Sign In
Basic CMS Questions
#2

[eluser]xwero[/eluser]
1 why not do a check if the page exists?
Code:
function page_exists($page)
{
  return ($this->db->where('page',$page)->count_all_results() == 0) ? false : true ;
}

2 pagination is the solution but then you can't use the jquery tablesorter anymore as it will only sort the page results and not the whole recordset. To paginate the databse you have to use the limit keyword or method if you are using CI AR to build your sql statements.


Messages In This Thread
Basic CMS Questions - by El Forum - 03-09-2009, 03:45 AM
Basic CMS Questions - by El Forum - 03-09-2009, 03:59 AM
Basic CMS Questions - by El Forum - 03-09-2009, 04:35 AM
Basic CMS Questions - by El Forum - 03-09-2009, 04:48 AM
Basic CMS Questions - by El Forum - 03-09-2009, 05:08 AM
Basic CMS Questions - by El Forum - 03-09-2009, 05:31 AM
Basic CMS Questions - by El Forum - 03-09-2009, 05:59 AM
Basic CMS Questions - by El Forum - 03-09-2009, 11:29 AM
Basic CMS Questions - by El Forum - 03-18-2009, 11:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB