Home > PHP > Function > Firebird/InterBase > ibase_trans()

ibase_trans()

ibase_trans - Begin a transaction

Syntax

resource ibase_trans (int $trans_args, resource $link_identifier, resource $link_identifier, int $trans_args, int $trans_args, resource $link_identifier, resource $link_identifier, int $trans_args)

Arguments

  • trans_args - trans_args can be a combination of IBASE_READ, IBASE_WRITE, IBASE_COMMITTED, IBASE_CONSISTENCY, IBASE_CONCURRENCY, IBASE_REC_VERSION, IBASE_REC_NO_VERSION, IBASE_WAIT and IBASE_NOWAIT.
  • link_identifier - An InterBase link identifier. If omitted, the last opened link is assumed.
  • link_identifier
  • trans_args
  • trans_args - trans_args can be a combination of IBASE_READ, IBASE_WRITE, IBASE_COMMITTED, IBASE_CONSISTENCY, IBASE_CONCURRENCY, IBASE_REC_VERSION, IBASE_REC_NO_VERSION, IBASE_WAIT and IBASE_NOWAIT.
  • link_identifier - An InterBase link identifier. If omitted, the last opened link is assumed.
  • link_identifier
  • trans_args

Description

Begins a transaction.

Version

PHP 4, 5

Return value

Returns a transaction handle, or FALSE on error.