title: Codeigniter 2.1 - return ids after insert batch
body: <p>How can I return all IDs after insert_bunch? Function:</p>
  
  <pre><code>public function insert_slike($id, $slike, $folder, $polje, $tabela)
  {
          $slike = explode(',', $slike);
          $i = 1;
          $data = array();
          foreach ($slike as $slk) {
              $this-&gt;img_upload_resize($slk, $folder);
              $data[] = array(
                  $polje =&gt; $id,
                  'path' =&gt; $slk
                  );
              $i++;
          }
  
          $this-&gt;db-&gt;insert_batch($tabela, $data);
  }
  </code></pre>