multiple queries, one transaction

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a site where I need to do multiple queries in sequence. 
 
 
I see there is a way to do consider all querys and to fail the entire
procedure if one query fails. It's a BEGIN and COMMIT statement.
 
mysql_query("BEGIN"); // starts the transaction
 
 
mysql_query("COMMIT"); // ends the transaction
 
I'm just not certain how it's used.
 
Thx, mayo
 
 
 

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux