Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere PHP API » SQL Anywhere PHP API reference



int sasql_stmt_num_rows( sasql_stmt $stmt )

Returns the number of rows in the result set. The actual number of rows in the result set can only be determined after the sasql_stmt_store_result function is called to buffer the entire result set. If the sasql_stmt_store_result function has not been called, 0 is returned.


$stmt   A statement resource that was executed by sasql_stmt_execute and sasql_stmt_store_result was called on.


The number of rows available in the result or 0 on failure.

Related functions