mysqli_stmt::$num_rows mysqli_stmt_num_rows Return the number of rows in statements result set &reftitle.description; &style.oop; intmysqli_stmt->num_rows &style.procedural; intmysqli_stmt_num_rows mysqli_stmtstmt 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. &reftitle.parameters; &mysqli.stmt.description; &reftitle.returnvalues; An integer representing the number of rows in result set. &reftitle.examples; &style.oop; prepare($query)) { /* execute query */ $stmt->execute(); /* store result */ $stmt->store_result(); printf("Number of rows: %d.\n", $stmt->num_rows); /* close statement */ $stmt->close(); } /* close connection */ $mysqli->close(); ?> ]]> &style.procedural; ]]> &examples.outputs; &reftitle.seealso; mysqli_stmt_affected_rows mysqli_prepare mysqli_stmt_store_result