core/MY_Model.php
public function insert_many($data, $skip_validation = FALSE)
    {
        $ids = array();

        foreach ($data as $key => $row)
        {
            $ids[] = $this->insert($row, $skip_validation, ($key == count($data) - 1));
        }

        return $ids;
    }
public function insert_many($data, $skip_validation = FALSE)
    {
        $ids = array();

        foreach ($data as $key => $row)
        {
            $ids[] = $this->insert($row, $skip_validation, ($key == count($data) - 1));
        }

        return $ids;
    }
public function insert_many ( $ data , $ skip_validation = FALSE ) { $ ids = array ( ) ; foreach ( $ data as $ key => $ row ) { $ ids [ ] = $ this -> insert ( $ row , $ skip_validation , ( $ key == count ( $ data ) - 1 ) ) ; } return $ ids ; }
Insert multiple rows into the table. Returns an array of multiple IDs.
Insert multiple rows into the table . Returns an array of multiple IDs .