Welcome Guest, Not a member yet? Register   Sign In
Inserting Multiple Records with Active Record

Does anyone know if the AR method $this->db->insert() accepts a multi-dimensional array if I want to insert multiple rows?

Update: found out that you can't feed it a multi-dimensional array. Any ideas how I might insert a lot of rows without having to write a ton of individual arrays?

Loop through it with a foreach and insert per subarray?

Theme © iAndrew 2016 - Forum software by © MyBB