bool mysqli::commit ([ int $flags [, string $name ]] )
bool mysqli_commit ( mysqli $link [, int $flags [, string $name ]] )
Commits the current transaction for the database connection.
Also look at the mysqli_autocommit() function, which turns on or off auto-committing database modifications, and the mysqli_rollback() function, which rolls back the current transaction.
The mysqli_commit() function commits the current transaction for the specified database connection.
Procedural style
Parameter | Description |
---|---|
link | Procedural style only: A link identifier returned by mysqli_connect() or mysqli_init() |
flags | A bitmask of MYSQLI_TRANS_COR_* constants. |
name | If provided then COMMIT/*name*/ is executed. |
Returns TRUE on success or FALSE on failure.