[eluser]Corey Freeman[/eluser]
I'm using the ajax pagination library, by the way.
I have joined table results to get the updates from a user and their data. I dunno how to work that with pagination though...
Code:
///////////////////////////////////////////////////////////
$support_id = $this->session->userdata('id');
$data['feed'] = $this->db
->select('goals.goal, goals.goal_id, goals.description, users.id, users.username, users.avatar')
->from('goals')
->join('supporters', 'supporters.user_id = goals.user_id')
->where('supporters.support_id',$support_id)
->join('users', 'supporters.user_id = users.id')
->orderby('goals.goal_id', 'DESC')
->get();
///////////////////////////////////////////////////////////
Help would be much appreciated.