how to update form data in codeigniter

后端 未结 3 1867
感情败类
感情败类 2021-01-14 14:03

I am new in codeigniter.

I am using codeigniter for this project. I have not getting how to update form data in the database. I have inserting,showing data in the dat

3条回答
  •  无人共我
    2021-01-14 14:34

    Just by having a quick look, I can see you're not passing anything to the $data in your entry_update1 function;

    public function entry_update1($id) {
    
        $this->db->where('id', $id);
        $this->db->update('user', $data);
    
    }
    

    You're trying to update 'user' with $data, but you haven't set $data.

提交回复
热议问题