Welcome Guest, Not a member yet? Register   Sign In
Same Pagination Problem
#4

[eluser]srpurdy[/eluser]
Add
Code:
$config['uri_segment'] = '3'; //change this to the uri where the page segment would be.

Change
Code:
$data['_clinicList'] = $this->Clinic_list->entries (30);

to that
Code:
$data['_clinicList'] = $this->Clinic_list->entries($config['per_page'],$config['uri_segment']);

entries function

Code:
function entries($limit,$offset)
{
$query = $this->db
->select('*') //you should only select fields you actually need.
->from('v16_listings')
->limit($limit,$offset)
->get();
return $query->result();
}


Messages In This Thread
Same Pagination Problem - by El Forum - 08-21-2012, 12:47 PM
Same Pagination Problem - by El Forum - 08-21-2012, 03:00 PM
Same Pagination Problem - by El Forum - 08-21-2012, 03:15 PM
Same Pagination Problem - by El Forum - 08-21-2012, 05:48 PM
Same Pagination Problem - by El Forum - 08-22-2012, 03:51 AM
Same Pagination Problem - by El Forum - 08-22-2012, 06:36 AM
Same Pagination Problem - by El Forum - 08-22-2012, 09:28 AM
Same Pagination Problem - by El Forum - 08-22-2012, 10:58 AM
Same Pagination Problem - by El Forum - 08-22-2012, 11:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB