object sqlanywhere_fetch_object( resource result_identifier )
This function is deprecated. You should use the following PHP function instead: sasql_fetch_object.
Fetches one row from the result set. This row is returned as an object that can be indexed by the column name only.
result_identifier The result resource returned by the sqlanywhere_query function.
An object that represents a row from the result set, or FALSE when no rows are available.
This example shows how to retrieve one row at a time from a result set as an object. Column names can be used as object members to access the column value.
$result = sqlanywhere_query( $conn, "SELECT GivenName, Surname FROM Employees" ); While( ($row = sqlanywhere_fetch_object( $result )) ) { echo "$row->GivenName \n"; # output the data in the first column only. } |
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |