db->get_where('class' , array('class_id' => $class_id))->row()->name; $exam_name = $this->db->get_where('exam' , array('exam_id' => $exam_id))->row()->name; $system_name = $this->db->get_where('settings' , array('type'=>'system_name'))->row()->description; $running_year = $this->db->get_where('settings' , array('type'=>'running_year'))->row()->description; ?>
db->get_where('mark' , array( 'subject_id' => $row3['subject_id'], 'exam_id' => $exam_id, 'class_id' => $class_id, 'student_id' => $student_id , 'year' => $this->db->get_where('settings' , array('type' => 'running_year'))->row()->description )); if($obtained_mark_query->num_rows() > 0) { $marks = $obtained_mark_query->result_array(); foreach ($marks as $row4) { echo $row4['mark_obtained']+$row4['labuno']+$row4['labdos']+$row4['labtres'] +$row4['labcuatro']+$row4['labcinco']+$row4['labseis']+$row4['labsiete']+$row4['labocho']+$row4['labnueve']; } } ?> |