function updateOnDialog($id) { $this->db->where('id', $id); self::$data = array('email' => $this->input->post('email_e'), 'password' => $this->input->post('password_e'), 'username' => $this->input->post('username_e')); //$id = $this->input->post('id_e'); //$this->load->view('edit'); $this->db->update('users', self::$data); redirect('home', 'refresh'); }