|
mysqli_result::$num_rowsmysqli_num_rowsGets the number of rows in a result BeschreibungObjektorientierter Stil int$mysqli_result->num_rows;
Prozeduraler Stil
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. Parameter-Liste
RückgabewerteReturns number of rows in the result set.
BeispieleBeispiel #1 Objektorientierter Stil
<?phpBeispiel #2 Prozeduraler Stil
<?phpDie obigen Bespiele erzeugen folgende Ausgabe: Result set has 239 rows. Siehe auch
|