Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public function getMenuById($id)
  2. {
  3. return $this->db->get_where('user_menu', ['id' => $id])->row_array();
  4. }
  5.  
  6. public function editNewMenu()
  7. {
  8. $data = [
  9. "menu" => $this->input->post('menu', true)
  10. ];
  11. $this->db->where('id', $this->input->post('id'));
  12. $this->db->update('user_menu', $data);
  13. }
  14.  
  15. public function deleteMenuById($id)
  16. {
  17. $this->db->where('id', $id);
  18. $this->db->delete('user_menu');
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement