int sasql_num_fields( sasql_result $result )
Returns the number of fields that a row in the $result contains.
$result The result resource returned by the sasql_query function.
Returns the number of fields in the specified result set.