title: num_rows on delete query codeigniter
body: <p>I'm trying to find a way to validate that my Delete query was successful. How can I get num_rows or affected_rows from the following structure:</p>
  
  <pre><code>public function fire_db($currentUserID, $id_staff){
          $this-&gt;db-&gt;where('id_player', $currentUserID);
          $this-&gt;db-&gt;where('id_hired_staff', $id_staff);
          $this-&gt;db-&gt;limit(1); 
          $this-&gt;db-&gt;delete('game_hired_staff'); 
          if ($this-&gt;db-&gt;num_rows() == 1) {
              return true; 
          }
          else
              return false;
      }
  </code></pre>
  
  <p>Using codeigniter 3</p>