Skip to content
Advertisement

update batch in codeigniter

I have data on db_temporary here I will update based on id_service, but why doesn’t the update work?

JavaScript

Advertisement

Answer

The data doesn’t seem to be updated because you’ve used update_batch as well as redirect inside foreach loop, I’m writing the rectified code below, comments are mentioned wherever necessary. See if it resolves your issue.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement