title: Update data without deleting old files with code at CodeIgniter
body: <p>I have data like the example below, when I try to add new data, the example I want to add the name <code>philips</code> on the <code>id</code> <code>02</code> but after I update the name <code>ana, jack</code> to remove and the name <code>philips</code> is stored, is there any other way to update the table with as add one name without deleting the old data?</p>
  
  <pre><code> id   |         name       |  class
  --------------------------------------
   01   | smith, john, billy |   III
   02   | ana, jack,         |   IV
  </code></pre>
  
  <p>Controllers</p>
  
  <pre><code>$id = $this-&gt;uri-&gt;segment(3);;
  $this-&gt;my_model-&gt;update_name($id);
  </code></pre>
  
  <p>Models</p>
  
  <pre><code>function update_name($id) {
      $data = array(                  
          'name' =&gt; $this-&gt;input-&gt;post('name'));              
      $this-&gt;db-&gt;where('id', $id);
      $this-&gt;db-&gt;update('mytable', $data);
  }
  </code></pre>