$id = $this->input->post('userId'); $data = array( 'first_name' => $this->input->post('first_name'), 'last_name' => $this->input->post('last_name'), 'username' => $this->input->post('username'), 'password' => $this->input->post('password'), 'email' => $this->input->post('email') ); $this->ion_auth->update($id, $data); ;