[eluser]steelaz[/eluser]
Everything sounds correct up to the last part, you only need to add <i>where</i> statement to your database query. Your code in the model would look something like this:
Code:
public function get_articles_by_user($user_id)
{
$this->db->where('user_id', $user_id);
$query = $this->db->get('articles');
return $query->result();
}
And in controller, assuming you have logged in user's id in the session:
Code:
$articles = $this->articles_model->get_articles_by_user($this->session->userdata('user_id'));