sasql_stmt_num_rows

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.

Prototype

int sasql_stmt_num_rows( sasql_stmt $stmt )

Parameters

$stmt – A statement resource that was executed by sasql_stmt_execute and for which sasql_stmt_store_result was called.

Returns

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