Here you can check Insert Query In Codeigniter:
$data = array(
'name' = > $_POST['name'] ,
'email'= > $_POST['email'],
'pass' = > $_POST['pass'] );
$this-> db->insert('users', $data);
$data = array(
'name' = > $_POST['name'] ,
'email'= > $_POST['email'],
'pass' = > $_POST['pass'] );
$this-> db->insert('users', $data);