title: notifying the user about successful update in codeigniter
body: <p>i'm using these two lines to update my table using codeigninter active records</p>
  
  <pre><code>$this-&gt;db-&gt;where('reference_number', $reference);
  $this-&gt;db-&gt;update('patient', $data); 
  </code></pre>
  
  <p>what i want to de is to check weather it successfully updates the table and according to that i want to give a notification to the user, how can i check the successful update is happened with this lines? there is a no clue in the user guide telling that by putting the line</p>
  
  <pre><code>if($this-&gt;db-&gt;update('patient', $data));
  </code></pre>
  
  <p>will give us a true or false value, can we do like that? or is there any other solution to this problem?</p>
  
  <p>regards,
  Rangana</p>