Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function insert_location()
- {
- $this->load->helper('url');
- $this->db->select('*');
- $query = $this->db->get('locaties');
- $num = $query->num_rows();
- $data = array(
- 'id' => ($num + 1),
- 'name' => $this->input->post('locatie')
- );
- return $this->db->insert('locaties', $data );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement