bool mysqli::rollback ([ int $flags [, string $name ]] )
bool mysqli_rollback ( mysqli $link [, int $flags [, string $name ]] )
Rollbacks the current transaction for the database.The mysqli_rollback() function rolls back the current transaction for the specified database connection.
0 rows in table myCity. 50 rows in table myCity (after rollback).
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 ROLLBACK/*name*/ is executed. |
Returns TRUE on success or FALSE on failure.