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

SQL Anywhere PHP API reference Next Page

sqlanywhere_commit


Prototype

bool sqlanywhere_commit( resource link_identifier )

Description

Ends a transaction on the SQL Anywhere database and makes any changes made during the transaction permanent. Useful only 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 shows how sqlanywhere_commit can be used to cause a commit on a specific connection.

$result = sqlanywhere_commit( $conn );
Related functions