|
mysqli_result::$num_rowsmysqli_num_rowsGets the number of rows in a result DescriptionObject oriented style int$mysqli_result->num_rows;
Procedural style
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. Parameters
Return ValuesReturns number of rows in the result set.
ExamplesExample #1 Object oriented style
<?php Example #2 Procedural style
<?php The above examples will output: Result set has 239 rows. See Also
|