title: Error: You must use the "set" method to update an entry fix?
body: <p>I am using codeigniter as my PHP framework, and I keep getting this error when I submit my from to post to my database.</p>
  
  <pre><code>You must use the "set" method to update an entry
  </code></pre>
  
  <p>I am not exactly sure what that means, from the other posts I have looked at, everyone says that the datamapper needs to have a value assigned to the object. </p>
  
  <p>Being that I am new to all this, could someone give me a better explaniation.</p>
  
  <p>Here is my code where it says I have the error:
      
  
  <pre><code>class Add_book extends CI_Model {
  
  public function add_book($data){
  
      $this-&gt;db-&gt;insert('ST_ITM', $data);
  
  }
  
  }
  
  ?&gt;
  </code></pre>
  
  <p>Thank you.</p>