The mysqli_commit() function commits the current transaction for the specified database connection.
mysqli_commit(connection);