sasql_stmt_field_count

This function returns the number of columns in the result set of the statement.

Prototype

int sasql_stmt_field_count( sasql_stmt $stmt )

Parameters

$stmt – A statement resource.

Returns

The number of columns in the result of the statement. If the statement does not return a result, it returns 0.