1 回答
TA贡献1807条经验 获得超9个赞
希望这会对您有所帮助,更新您的数据并运行它
$data = array(
'status' => $this->input->post('status'),
'uploader_type' => "yourdata",
'year' => "year"
);
$this->db->where('student_id', $student_id);
$this->db->update('assessment', $data);
您可能需要根据需要更改此代码
function mark_update($lesson_id='', $student_id=''){
$data = array(
'status' => $this->input->post('status'),
'uploader_type' => "yourdata",
'year' => "year"
);
$this->db->where('student_id', $student_id);
$this->db->update('assessment', $data);
}
如果您想通过assessment_id 更新,那么像这样更新您的函数
function mark_update($lesson_id='', $assessment_id=''){
$data = array(
'status' => $this->input->post('status'),
'uploader_type' => "yourdata",
'year' => "year"
);
$this->db->where('assessment_id', $assessment_id);
$this->db->update('assessment', $data);
}
- 1 回答
- 0 关注
- 92 浏览
添加回答
举报