Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. public function save_contract($data) {
  2. $this->db->insert("contract", $data);
  3. $insert_id = $this->db->insert_id();
  4. }
  5.  
  6. public function contract_submitted() {
  7.  
  8. $data = array(
  9. 'line_of_business_id' => $this->input->post('busi'),
  10. 'Contact_name' => $this->input->post('name')
  11. );
  12. $this->modal_create_contract->save_contract($data);
  13. $this->load->view('contract',$data);
  14.  
  15. }
  16.  
  17. public function save_contract($data){
  18. $this->db->insert("contract", $data);
  19. $insert_id = $this->db->insert_id();
  20. return $insert_id;
  21. }
  22.  
  23. public function contract_submitted() {
  24.  
  25. $data = array(
  26. 'line_of_business_id' => $this->input->post('busi'),
  27. 'Contact_name' => $this->input->post('name')
  28. );
  29. $lastID= $this->modal_create_contract->save_contract($data);
  30. $data['last_id']=$lastID;
  31. $this->load->view('contract',$data);
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement