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

SQL Anywhere 11.0.0 » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere PHP API » SQL Anywhere PHP API reference » Deprecated PHP functions

 

sqlanywhere_fetch_row (deprecated)

Prototype
array sqlanywhere_fetch_row(  resource result_identifier  )
Description

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

Fetches one row from the result set. This row is returned as an array that can be indexed by the column indexes only.

Parameters

result_identifier   The result resource returned by the sqlanywhere_query function.

Returns

An array that represents a row from the result set, or FALSE when no rows are available.

Example

This example shows how to retrieve one row at a time from a result set.

while( ($row = sqlanywhere_fetch_row( $result )) ) {
        echo "$row[0] \n";     # output the data in the first column only.
  }
Related functions