The Codeigniter allows us to perform the database action like – select, insert, update, and delete with the minimal script.
$this->db->update() method is used for update existing record. It takes table name and an array or object as the parameter.
In the demonstration, I am listing the user’s list with the edit option. Show the update form on edit option click.