title: why can't i use insert_batch like this in codeigniter
body: <p>hi i am using codeigniter , i use the <code>insert_batch</code> function . i have a table structure like this </p>
  
  <p><img src="https://i.stack.imgur.com/05yfq.png" alt="enter image description here"></p>
  
  <p>an i am using an array like this to <code>insert_batch</code> function</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [ProfileID] =&gt; 5
              [ActivityTypeID] =&gt; 4
              [ActivityTitle] =&gt; bbggg
              [ActivityLink] =&gt; http://localhost/elephanti2/home/user/action/settings/user/profilesettings
              [IsActive] =&gt; 1
              [CreatedOn] =&gt; 1331532905
              [CreatedBy] =&gt; 5
          )
  
      [1] =&gt; Array
          (
              [ActivityImage] =&gt; 
              [ActivityTitle] =&gt; kkkkkkkk
              [ActivityFromDate] =&gt; 1330642800
              [ActivityToDate] =&gt; 1331852400
              [ActivityDescription] =&gt; kkkkkkkkkkkkkkkk
              [ActivityLink] =&gt; 
              [CreatedOn] =&gt; 1331532905
              [CreatedBy] =&gt; 5
              [ProfileID] =&gt; 5
              [ActivityTypeID] =&gt; 1
          )
  
  )
  </code></pre>
  
  <p>error is given </p>
  
  <p><img src="https://i.stack.imgur.com/YGDwy.png" alt="enter image description here"></p>
  
  <p>why this happens </p>
  
  <p><strong>can't i use arrays with different keys ???????</strong> </p>
  
  <p>please help.............. thanks in advance </p>