MySQL transactions examples in PHP
http://stackoverflow.com/questions/2708237/php-mysql-transactions-examples
mysql_query("SET AUTOCOMMIT=0");
mysql_query("START TRANSACTION");
$a1 = mysql_query("INSERT INTO rarara (l_id) VALUES('1')");
$a2 = mysql_query("INSERT INTO rarara (l_id) VALUES('2')");
if ($a1 and $a2)
{
mysql_query("COMMIT");
}
else
{
mysql_query("ROLLBACK");
}
86483880-23ef-4710-96db-74f012b690ea|0|.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
MySQL, PHP
Transactions, PHP, MySQL