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

SQL Anywhere 10.0.1 » SQL Anywhere Server - Programming » SQL Anywhere PHP API » SQL Anywhere PHP API reference

sqlanywhere_result_all Next Page

sqlanywhere_rollback


Prototype

bool sqlanywhere_rollback( resource link_identifier )

Description

Ends a transaction on the SQL Anywhere database and discards any changes made during the transaction. This function is only useful when the auto_commit option is Off.

Parameters

link_identifier    The link identifier returned by a sqlanywhere_connect function.

Returns

True on success or false on failure.

Example

This example uses sqlanywhere_rollback to roll back a connection.

$result = sqlanywhere_rollback( $conn );
Related functions