Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function insert_data() {
- $data = array(
- 'user_username' => trim($this->input->post('username', 'true')),
- 'user_password' => sha1(trim($this->input->post('password', 'true'))),
- 'user_nip' => trim($this->input->post('nip', 'true')),
- 'user_nama' => ucwords(strtolower($this->input->post('nama', 'true'))),
- 'user_email' => trim($this->input->post('email', 'true')),
- 'user_jabatan' => trim($this->input->post('jabatan', 'true')),
- 'user_level' => 'Admin',
- 'user_active' => 'Active',
- 'user_update' => date('Y-m-d H:i:s')
- );
- $this->db->insert('rtlh_users', $data);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement