The mysqli_commit() function commits the current transaction. This means that all commands executed
after turning off autocommit are permanently written to the database.
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:
autocommit in the code and execute insertions.mysqli_commit(), you won't see the data in the database.