|
mysqli_stmt::$num_rowsmysqli_stmt_num_rowsReturn the number of rows in statements result set DescriptionObject oriented style int$mysqli_stmt->num_rows;
Procedural style
int mysqli_stmt_num_rows
( mysqli_stmt
$stmt
)Returns the number of rows in the result set. The use of mysqli_stmt_num_rows depends on whether or not you used mysqli_stmt_store_result to buffer the entire result set in the statement handle. If you use mysqli_stmt_store_result, mysqli_stmt_num_rows may be called immediately. Parameters
Return ValuesAn integer representing the number of rows in result set. ExamplesExample #1 Object oriented style
<?php Example #2 Procedural style
<?php The above examples will output: Number of rows: 20. See Also
|