这是我的代码:
function mark_update($lesson_id='', $student_id=''){
if ($this->session->userdata('admin_login') != 1)
redirect('login', 'refresh');
$data['status'] = $this->input->post('status');
$data['uploader_type'] = $this->session->userdata('
$data['uploader_id'] = $this->session->userdata('
$data['year'] = $this->db->get_where('settings',array('type'=>'running_year'))-
>row()->
$data['timestamp'] = strtotime(date("Y-m-d H:i:s"));
$this->db->update('assessment', $data);
redirect(base_url().'index.php?admin/mark_upload/'.$lesson_id.'/'.$student_id , 'refresh');
}
函数式编程