title: Unable to update database query in Codeigniter
body: <p>I have to fetch the record from the form of an array. following is an array result.</p>
  
  <pre><code>Array(
      [price] =&gt; Array
      (
          [0] =&gt; 210
      )
  
      [code] =&gt; Array
      (
          [0] =&gt; SER-1001
      )
  )
  Array
  (
      [price] =&gt; Array
      (
          [1] =&gt; 80
      )
  
      [code] =&gt; Array
      (
          [1] =&gt; XYZ-121
      )
  )
  </code></pre>
  
  <p>Now I am confused, how to update that records in product table where a code is e.g. <code>SER-1001</code> in the database then the price should be updated <code>210</code>.</p>
  
  <p>Same way as I do rest of matching code records.</p>