[eluser]Brad K Morse[/eluser]
Try this
Code:
$this->db->select('page_level_one.levelone_id,
page_level_two.levelone_id,
page_level_two.levelone_id as sublevel');
$this->db->from('page_level_one');
$this->db->join('page_level_two', 'page_level_one.levelone_id = page_level_two.levelone_id');
$this->db->where('page_level_one.levelone_id', $this->uri->segment(3));
$q = $this->db->get();
notice segment(3), that is based upon your URL structure being /segment1/segment2/id
segment 3 being the ID of the levelone_name, that you want to display all of its sublevels.
So the AS sublevel will contain the appropriate ID's of all the sublevels, then pass this into another function to print out the leveltwo_name
This is untested, so the query may not work.