The function mysqli_num_rows() returns the number of rows in a result set. Post navigation How be the result set of Mysql handled in PHP? Which function gives us the number of affected entries by a query?