⇧
vadnica-logo
My Services About the Project Telegram O meni O meni

mysqli_commit()

The mysqli_commit() function commits the current transaction. This means that all commands executed after turning off autocommit are permanently written to the database.

EXAMPLE
RESULT
The result will be displayed here...

Practical use: We use transactions when we want to ensure that either all commands are executed or none at all (e.g., during a money transfer). Test it at home like this: