01-19-2018, 08:39 AM
01-19-2018, 10:18 AM
You can use get_compiled_insert().
Example:
(In this example, 'user' is the table name).
Example:
PHP Code:
$data = array(
'employee_id' => 'Employee id number',
'user_type' => 'Type of User',
'username' => 'Username of User',
'password' => 'Password of the user'
);
$result = $this->db->set($data)->get_compiled_insert('user');
echo $result;
(In this example, 'user' is the table name).