(PHP 5, PHP 7, PHP 8)

mysqli::rollback — mysqli_rollback — Rolls back current transaction

Description

Object-oriented style

Procedural style

Rollbacks the current transaction for the database.

Return Values

Returns true on success or false on failure.

Changelog

Version Description
8.0.0 name is now nullable.

Notes

Note:

This function does not work with non transactional table types (like MyISAM or ISAM).