How to add a custom db call to codeigniter |
Guys, I would like to add my custom "multiple insert" function to CodeIgniter but I'm not sure what would be the best place for it. This is what the function looks like:
Code: function insert_multiple($table_name, $data)
There is already an "insert_batch" method that might be what you're looking for.
You can always create a MY_Model class, though, that extends CI_Model and add that method to it.
As killishan said there is a method described here:
http://www.codeigniter.com/userguide3/da...sert-batch |
Welcome Guest, Not a member yet? Register Sign In |