skip to Main Content

how to run two statements in one funcation – Mysql

I'm trying to delete from two tables using one function. Controller code: public function userdelete() { $u_id = $this->uri->segment(3); $lr_id = $this->uri->segment(3); $returndata = $this->user_model->user_delete($u_id, $lr_id); if($returndata) { $this->session->set_flashdata('successmessage', 'user deleted successfully..'); redirect('users'); } else { $this->session->set_flashdata('warningmessage', 'Something went wrong..Try…

VIEW QUESTION
Back To Top
Search