Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » 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)

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