Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function create_e_matriculas($arraycampos = NULL)
- {
- // bail if the group name already exists
- $existing_e_matriculas = $this->db->get_where($this->tables['e_matriculas'], $arraycampos)->num_rows();
- if($existing_e_matriculas !== 0)
- {
- $this->ion_auth->set_error('e_matriculas_already_exists');
- return FALSE;
- }
- // insert the new group
- $this->db->insert($this->tables['e_matriculas'], $arraycampos);
- $e_matriculas_id = $this->db->insert_id();
- // report success
- $this->set_message('e_matriculas_creation_successful');
- // return the brand new group id
- return $e_matriculas_id;
- }
- public function update_e_matriculas($id, $arraycampos)
- {
- $this->db->update($this->tables['e_matriculas'], $arraycampos, array('id' => $id));
- $this->ion_auth->set_message('barloc_update_successful');
- return TRUE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement