title: CodeIgniter insert_batch()
body: <p>OK i am trying to figure how to use insert_batch</p>
  
  <p>I am tring something like this</p>
  
  <pre><code>function checkboxes($data,$category)
      {
  
          $insert=array(
                          'story'=&gt;$data
                          'category'=&gt;$category
                       );
  
          $this-&gt;db-&gt;insert_batch('stories_to_categories',$insert);
      }
  </code></pre>
  
  <p>For $data i have array, which could have range of values and keys</p>
  
  <pre><code>(
      [0] =&gt; 1
      [1] =&gt; 6
      [2] =&gt; 14
      [3] =&gt; 15
      [4] =&gt; 18
  )
  </code></pre>
  
  <p>For category i will have only one value for example 2</p>
  
  <p>I try to achive in my tabele</p>
  
  <pre><code>  story category
  ------------------------
      1        2
      6        2
      14       2
      15       2
      18       2
  </code></pre>
  
  <p>Could someone help me i am in such a pain!</p>