odbc_autocommit

bool odbc_autocommit(resource conn, int option) 

Sets the autocommit action.

Returns:

TRUE on success; FALSE on failure

Description:

Specifies whether transactions performed are automatically committed to the database or whether odbc_commit() is required.Values used for the option parameter are 1 for on and 0 for off. This function is on by default.

Version:

Existing since version 3.0.6

Example:

Set autocommit on
$db = odbc_connect("DSN","user","pass"); 
odbc_autocommit($db,1); 

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.