mysqli_num_rows
mysqli_num_rows — Gets the number of rows in a result.Description
mysqli_num_rows( mysqli_result $result ): int|stringReturns 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.
Parameters
A mysqli_result object returned by mysqli_query(), mysqli_store_result(), mysqli_use_result() or mysqli_stmt_get_result().
result
A mysqli_result object returned by mysqli_query(), mysqli_store_result(), mysqli_use_result() or mysqli_stmt_get_result().
Return Values
Returns number of rows in the result set.More information about mysqli_num_rows on official PHP documentation site
mysqli_num_rows - Popular snippets
- PHP 7.4 / mysqli_query mysqli_num_rows ceil print_r
last run:
2025-01-31 18:00:39
185
- PHP 8.0 / mysqli_query mysqli_num_rows ceil print_r
last run:
2025-01-31 18:00:40
184
- / mysqli_query mysqli_num_rows ceil print_r
last run:
2025-01-31 15:45:23
182
- PHP 8.1 / mysqli_query mysqli_num_rows ceil print_r
last run:
2025-01-31 18:00:41
181
- PHP 8.1 / printf mysqli_num_rows mysqli_fetch_array
last run:
2023-05-17 07:38:58
23
- PHP 8.1 / printf mysqli_num_rows mysqli_fetch_array
last run:
2023-05-17 07:39:52
11
- PHP 8.0 / MySQL 8.0 mysqli_query mysqli_num_rows mysqli_fetch_assoc
last run:
2022-02-16 13:43:51
10
- PHP 8.1 / mysqli_query mysqli_num_rows
last run:
2022-10-08 09:42:39
8
- PHP 8.1 / mysqli_query mysqli_num_rows mysqli_fetch_assoc
last run:
2024-07-29 07:08:32
7
- PHP 8.0 / mysqli_query mysqli_num_rows mysqli_fetch_assoc
last run:
2022-07-26 21:44:34
7
mysqli_num_rows - New snippets
-
PHP 8.4 / MySQL 8.0 mysqli_query mysqli_num_rows mysqli_fetch_assoc
added at:
2025-04-04 05:09:24
1
-
PHP 8.3 / MySQL 8.0 mysqli_query mysqli_num_rows mysqli_fetch_array
added at:
2025-02-18 18:43:23
3
-
PHP 8.3 / MySQL 8.0 mysqli_query mysqli_num_rows mysqli_fetch_array
added at:
2025-02-18 18:43:18
1
-
PHP 8.3 / MySQL 8.0 mysqli_query mysqli_num_rows mysqli_fetch_array
added at:
2025-02-18 18:42:57
1
-
PHP 8.4 / MySQL 8.0 mysqli_query mysqli_num_rows var_dump
added at:
2025-02-17 04:22:03
1
-
PHP 8.3 / MySQL 8.0 mysqli_query mysqli_num_rows ceil print_r
added at:
2025-01-31 18:25:19
3
-
PHP 8.2 / MySQL 8.0 mysqli_query mysqli_num_rows ceil print_r
added at:
2025-01-31 18:25:17
3
-
PHP 8.4 / MySQL 8.0 mysqli_query mysqli_num_rows ceil print_r mysqli_query mysqli_num_rows ceil print_r
added at:
2025-01-31 18:22:09
5
-
PHP 8.1 / MySQL 8.0 mysqli_query mysqli_num_rows ceil print_r
added at:
2025-01-31 18:03:11
6