Welcome Guest, Not a member yet? Register   Sign In
Pagination again!
#1

[eluser]Perkin5[/eluser]
I have discovered that in order to get pagination to work, I have to use model code like this:
Code:
function get_stuff($num,$offset){
  
  $results = $this->db->get('stuff',$num,$offset)->result();
  return $results;
Can someone explain how this works? The two variables $num and &offset; have not been declared anywhere so how does codeigniter know what they are?




Theme © iAndrew 2016 - Forum software by © MyBB