title: how update shopping cart codeigniter
body: <p><em>fisrt my english's bad i hope you can understand my question and help me</em></p>
  
  <pre><code>foreach($data as $row)     
  { 
      echo(" 
           &lt;tr class='info'&gt; 
                   &lt;td&gt;'" .$row['id']. "'&lt;/td&gt; 
                   &lt;td&gt;'" .$row['name']."'&lt;/td&gt; 
                   &lt;td&gt;'" .$row[''] ."&lt;/td&gt; 
                   &lt;td&gt;&lt;input type='text' value='".$row['qty']. "' size='5' class='qty' name='qty'&gt; 
                   &lt;input type='hidden' value=".$row['rowid']." name='rowid'&gt;&lt;/td&gt; 
                   &lt;td&gt;'".$row['subtotal']."'&lt;/td&gt; 
           &lt;/tr&gt; ");                 
  }
  </code></pre>
  
  <p>when i edit qty of item,it's just last row change
  now i wan't if i edit any row it's will change</p>