int $mysqli_result->num_rows;
int mysqli_num_rows ( mysqli_result $result )
Returns the number of rows in the result set.The behaviour of mysqli_num_rows() depends on whether buffered or unbuffered result sets are being used. For unbuffered result sets, mysqli_num_rows() will not return the correct number of rows until all the rows in the result have been retrieved.
Result set has 239 rows.
Parameter | Description |
---|---|
result | Procedural style only: A result set identifier returned by mysqli_query(), mysqli_store_result() or mysqli_use_result(). |
Returns number of rows in the result set.