resource sqlanywhere_query( resource link_identifier, string sql_str )
This function is deprecated. You should use the following PHP function instead: sasql_query.
Prepares and executes the SQL query sql_str on the connection identified by link_identifier that has already been opened using sqlanywhere_connect or sqlanywhere_pconnect. For queries that do not return result sets, you can use the sqlanywhere_execute function.
link_identifier The link identifier returned by the sqlanywhere_connect function.
sql_str A SQL statement supported by SQL Anywhere.
For more information about SQL statements, see SQL statements.
A positive value representing the result resource on success, or 0 and an error message on failure.
This example executes the query SELECT * FROM SYSTAB on the SQL Anywhere database.
$result = sqlanywhere_query( $conn, "SELECT * FROM SYSTAB" );
|Send feedback about this page via email or DocCommentXchange||Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0|