PHP mysqli_num_rows() Function
Return the number of rows in a result set:
Definition and Usage
The mysqli_num_rows() function returns the number of rows in a result set.
Syntax
mysqli_num_rows(
result
)
;
| Parameters | Description |
|---|---|
| result | Required. Specifies the result set identifier returned by mysqli_query(), mysqli_store_result(), or mysqli_use_result(). |
Technical Details
| Return Value: | Returns the number of rows in the result set. |
|---|---|
| PHP Version: | 5+ |
PHP MySQLi Reference Manual