0

I am working on ci and when i am going to delete my data then i want to generate a confirm message box on click delete link and my code is this.

view.php

id);?>">Delete

controller.php

function delete($id) { $this->include_user->delete($id); redirect(site_url('admin_controller/fetch')); }

Model.php

function delete($id) { $this->db->delete("user",array('id' => $id)); }

4

1 に答える 1