Tags / codeigniter
Creating Dynamic Fields in a Database Table using CodeIgniter: A Practical Guide to SQL and PHP
It appears that you provided a large amount of text that is not related to the problem. I'll provide a clear answer to your question.
Using Arrays to Dynamically Update Multiple Tables in SQL
Understanding Undefined Methods in CodeIgniter: How to Fix Errors and Improve Your Application's Robustness