title: method to find actually data deleted or not in database in codeigniter
body: <p>Hi every is there any way to check whether data is actually deleted from database or not in codeigniter ?
  i have a method to delete data from database in my model as</p>
  
  <pre><code>             $this-&gt;db-&gt;delete('product', array('category' =&gt; $id)); 
  </code></pre>
  
  <p>and i have set flash datain my controller
  the data from database doesn't gets deleted but the flash message is shown. </p>
  
  <p>I need to show flash data only on actual delete from database.</p>