mysql_commit()
my_bool mysql_commit(MYSQL *mysql)
Use this function to commit the current transaction. After
this function is executed, INSERT,
UPDATE, and DELETE statements
are written to the database, and you cannot use the
mysql_rollback() function to undo them. The
function returns 0 if successful, a non-zero value if unsuccessful. If
mysql_autocommit(mysql, 1) is used previously, this
function does nothing and the return of the function is not relevant.
Here is an example:
mysql_commit(mysql);