Function.mysqli-stmt-num-rows
Aus PHP-Wiki
Wandregal Clara von Pinolino und Handy Tarife , Rentenversicherung . Kreditkarten Vergleichen Online - Kostenloser Kreditkartenvergleich
mysqli_stmt_num_rows
(PHP 5)
mysqli_stmt_num_rows(no version information, might be only in CVS)
stmt->num_rows -- Return the number of rows in statements result set.Inhaltsverzeichnis |
Description
mixed mysqli_stmt_num_rows ( object stmt)</BR >class stmt {
</BR >int num_rows
</BR >}
Returns the number of rows in the result set. The use of mysqli_stmt_num_rows() depends on whether or not you used function.mysqli-stmt-store-result to buffer the entire result set in the statement handle.
If you use function.mysqli-stmt-store-result, mysqli_stmt_num_rows() may be called immediately.
See also
function.mysqli-stmt-affected-rows, function.mysqli-prepare, function.mysqli-stmt-store-result
Example
Beispiel 1. Object oriented style
|
Beispiel 2. Procedural style
|
The above examples would produce the following output:
Number of rows: 20. |