CodeIgniter Forums

Full Version: Insert_Batch with update for duplicate key
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

I am looking for a function where I can do following.
Insert the records in batch into table when input is provided as array of data to update records along with table name, but when key is not found to update the records it should perform insert.

I am using HMVC for my application.

Any help is much appreciated.