Skip to content
Advertisement

how to update form data in codeigniter

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 databse is done. But I cant understand, how to update data in the database.

My controller:

JavaScript

model:

JavaScript

view:

JavaScript

Thank you in advance for your help.

Advertisement

Answer

You are only passing $id in

$this->usermodel->entry_update1($get['id']);

and in function u did

JavaScript

so you have to pass $data also in you function call

$this->usermodel->entry_update1($get['id'], $data);

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement