title: Make sure whether row in a table is deleted
body: <pre><code>function child_delete($c_no, $shift, $p_date, $dname) {
    $p_status = 0;
    $query = &quot;DELETE  from $this-&gt;tb1_name2 WHERE c_no=? AND time_slot=? AND      p_date=? AND d_name=? AND p_status=?&quot;;
    $statement = $this-&gt;connection-&gt;mysqli_conn-&gt;prepare($query) or  die(mysqli_error($this-&gt;connection-&gt;mysqli_conn));
    $statement-&gt;bind_param(&quot;dsssd&quot;, $c_no, $shift, $p_date, $dname, $p_status) or  die(mysqli_error($this-&gt;connection-&gt;mysqli_conn));
    $result = $statement-&gt;execute() or die(mysqli_error($this-&gt;connection-&gt;mysqli_conn));
  
    print_r(mysqli_affected_rows($statement));
  }
  </code></pre>
  <p>I used above code to delete row in a table and make sure weather the row is deleted.but it gives following error.</p>
  <blockquote>
  <p><b>Warning</b>:  mysqli_affected_rows() expects parameter 1 to be mysqli, object given in <b>/opt/lampp/htdocs/NEW/patient_channel/controller/Patient_controller.php</b> on line <b>318</b><br /></p>
  </blockquote>