Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
load->model('User_model'); $this->load->helper("url"); $this->load->library("pagination"); if (!$this->session->userdata('username')){ $this->session->set_flashdata('flash_data', 'You don\'t have access!'); redirect('Login'); } } public function index() { $this->db->distinct(); $this->db->select('programme'); $this->db->select('type'); $this->db->order_by('programme','ASC'); $get = $this->db->get('students'); foreach($get->result() as $student){ $data = array( 'type' => 'diploma' ); $this->db->like('programme','DED','BOTH'); $this->db->update('students', $data); echo $student->programme." => ".$student->type."
"; } echo "

VALID COURSES
"; $this->db->distinct(); $this->db->select('programme_id'); $this->db->order_by('programme_id','ASC'); $get = $this->db->get('student_courses'); foreach($get->result() as $student){ echo $student->programme_id."
"; } } public function update(){ $this->db->where('yos',1); $this->db->where('semester',1); $this->db->where('programme_id', 'Bachelor Of Science in Health Information System'); // $this->db->order_by('course_code','ASC'); $co = $this->db->get('student_courses'); foreach($co->result() as $code){ echo $code->course_code."
"; } /* $code = 'CS 413'; $id = 'Artificial Intelligence'; $data = array( 'course_code'=>$code, 'programme_id'=>$id, 'yos' =>'3', 'semester'=>'1' ); if($this->db->insert('student_courses',$data)){ echo "Done"; }*/ } }