maxdb_stmt_num_rows
maxdb_stmt::num_rows
Return the number of rows in statements result set
&reftitle.description;
&style.procedural;
intmaxdb_stmt_num_rows
resourcestmt
&style.oop;
intmaxdb_stmt->num_rows
Returns the number of rows in the result set.
&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 */
$maxdb->close();
?>
]]>
&style.procedural;
]]>
&example.outputs.similar;
&reftitle.seealso;
maxdb_stmt_affected_rows
maxdb_prepare
maxdb_stmt_store_result