title: code igniter updating a row with multiple values to a column
body: <p>I am getting a array to my model. Say array has an value 1 and 2.</p>
  
  <p>Now I need to update this to a single column 1,2 so that column will look like this</p>
  
  <p>Column</p>
  
  <p>1,2 </p>
  
  <pre><code>foreach($x as $y){
   $this-&gt;db-&gt;where('column',4);
   $this-&gt;db-&gt;set('id',$data);
   $this-&gt;db-&gt;update('table');
   }
  </code></pre>
  
  <p>But this is only update 2, it is omitting 1. Where am i going wrong ?</p>