mysqli_affected_rows() return the number of entries affected by an SQL query. Post navigation How is it possible to know the number of rows returned in the result set? What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?