Advertisement
Guest User

controller

a guest
Dec 18th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public function update($id)
  2.  
  3. {
  4. print_r($_POST);
  5.  
  6. $info = $this->input->post('info');
  7. $tanggal = $this->input->post('tanggal');
  8. $status = $this->input->post('status');
  9.  
  10. $data = array(
  11. 'info' => $info,
  12. 'tanggal' => $tanggal,
  13. 'status' => $status
  14. );
  15.  
  16. $where = array(
  17. 'info' => $info
  18. );
  19.  
  20. $this->Admin_model->updateData($where,$data,'tb_informasi');
  21. //redirect('admin/pengumuman');
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement