sqlanywhere_num_fields (deprecated)

Prototype
int sqlanywhere_num_fields( resource result_identifier )
Description

This function is deprecated. You should use the following PHP function instead: sasql_field_count.

Returns the number of columns (fields) the result_identifier contains.

Parameters

result_identifier   The result resource returned by the sqlanywhere_query function.

Returns

A positive number of columns, or an error if result_identifier is not valid.

Example

This example returns a value indicating how many columns are in the result set.

$num_columns = sqlanywhere_num_fields( $result );
Related functions