Welcome Guest, Not a member yet? Register   Sign In
How to insert corporate details into database
#11

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 )
Reply


Messages In This Thread
RE: How to insert corporate details into database - by InsiteFX - 11-20-2020, 04:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB