Transactions only work on InnoDB tables within mySql, not the standard myIsam tables. You use transactions with simple SQL statements:
mysql_query("BEGIN");
mysql_query("COMMIT");
mysql_query("ROLLBACK");
Quote:
|
Originally Posted by leavethisplace
im gonna raise my hand and ask what transaction support is
*raises hand*
|
When usging transactions and something is done to a database (ie insert, update, or delete), the database server will not make any changes permanent. Every update, insert, and delete statement is logged. This way, you can issue multiple update statements, and if one fails, you can "rollback", or undo all the other updates that happened. If all updates are done successfull, then you can "commit", or make permanant all the updates.
I hope I explained it clearly. If not, do a google search for 'database transactions', there are many tutorials about it.
|