Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 60 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. public function insert_location()
  2.     {
  3.         $this->load->helper('url');
  4.  
  5.         $this->db->select('*');
  6.         $query = $this->db->get('locaties');
  7.         $num = $query->num_rows();
  8.  
  9.         $data = array(
  10.             'id' => ($num + 1),
  11.             'name' => $this->input->post('locatie')
  12.         );
  13.  
  14.         return $this->db->insert('locaties', $data );
  15.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top