title: Codeigniter Database Insert Failure
body: <p>Currently in my controller, when adding new data, I validate the inputs, and if there are any problems it lets a user known, otherwise it passes the data to the model to insert to the database</p>
  
  <p>How do I now go about checking the insert statement worked correctly in the model, and let a user known if it did not.</p>
  
  <p>Does an insert statement like below, return true or false, which can then be returned to the controller? </p>
  
  <pre><code>$this-&gt;db-&gt;insert('Faviroute_Addresses', $address_data);
  </code></pre>
  
  <p>Thanks for any help</p>