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 » Deprecated PHP functions


sqlanywhere_num_fields (deprecated)

int sqlanywhere_num_fields( resource result_identifier )

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.


result_identifier   The result resource returned by the sqlanywhere_query function.


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


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

$num_columns = sqlanywhere_num_fields( $result );
Related functions