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; $system_email = $this->db->get_where('settings' , array('type'=>'system_email'))->row()->description; $running_year = $this->db->get_where('settings' , array('type'=>'running_year'))->row()->description; $phone = $this->db->get_where('settings' , array('type'=>'phone'))->row()->description; ?>
db->get_where('student' , array('student_id' => $student_id))->row()->name;?>
: db->get_where('enroll', array('student_id' => $student_id))->row()->roll;?>
db->get_where('class', array('class_id' => $class_id))->row()->name;?>
db->get_where('section' , array('class_id' => $class_id))->row()->name;?>
crud_model->get_exams(); $subjects = $this->db->get_where('subject' , array('class_id' => $class_id , 'year' => $running_year))->result_array(); foreach ($subjects as $row3): $mark = $this->db->get_where('mark' , array('student_id' => $student_id,'subject_id' => $row3['subject_id'], 'class_id' => $class_id, 'exam_id' => $exam_id, 'year' => $this->db->get_where('settings' , array('type' => 'running_year'))->row()->description)); if($mark->num_rows() > 0) { $marks = $mark->result_array(); } foreach ($marks as $row4): ?>
db->get_where('teacher' , array('teacher_id' => $row3['teacher_id']))->row()->name;?> db->get_where('mark' , array('subject_id' => $row3['subject_id'], 'exam_id' => $exam_id, 'student_id'=> $student_id,'year' => $running_year))->row()->labtotal; ?>