1 回答

TA貢獻(xiàn)1807條經(jīng)驗(yàn) 獲得超9個(gè)贊
希望這會(huì)對(duì)您有所幫助,更新您的數(shù)據(jù)并運(yùn)行它
$data = array(
'status' => $this->input->post('status'),
'uploader_type' => "yourdata",
'year' => "year"
);
$this->db->where('student_id', $student_id);
$this->db->update('assessment', $data);
您可能需要根據(jù)需要更改此代碼
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);
}
如果您想通過(guò)assessment_id 更新,那么像這樣更新您的函數(shù)
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 關(guān)注
- 120 瀏覽
添加回答
舉報(bào)