Insert creates a new database record, update will update an existing record.
Delete will delete the record, replace will delete the record then insert it.
PHP Code:
$data = [
'title' => 'My title',
'name' => 'My Name',
'date' => 'My date'
];
$builder->replace($data);
// Executes: REPLACE INTO mytable (title, name, date) VALUES ('My title', 'My name', 'My date')
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )