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



bool sasql_real_query( sasql_conn $conn, string $sql_str )

Executes a query against the database using the supplied connection resource. The query result can be retrieved or stored using sasql_store_result or sasql_use_result. The sasql_field_count function can be used to check if the query returns a result set or not.

Note that the sasql_query function is equivalent to calling this function and one of sasql_store_result or sasql_use_result.


$conn   The connection resource returned by a connect function.

$sql_str   A SQL statement supported by SQL Anywhere.


TRUE on success or FALSE on failure.

Related functions