db->get_where('student' , array('parent_id' => $this->session->userdata('parent_id')))->result_array();
foreach ($children_of_parent as $row2):
$class_id = $this->db->get_where('enroll' , array('student_id' => $row2['student_id'] , 'year' => $running_year))->row()->class_id;
$section_id = $this->db->get_where('enroll' , array('student_id' => $row2['student_id'] , 'year' => $running_year))->row()->section_id;
?>