This chapter introduces MySQL’s transactional capabilities and demonstrates how transactions are executed both via a MySQL client and from within a PHP script. By its conclusion, you’ll possess a general understanding of transactions, how they’re implemented by MySQL, and how to incorporate them into your PHP applications.
What’s a Transaction?
A transaction is an ordered group of database operations that are treated as a single unit. A transaction is deemed successful if all operations in the group succeed, and it is deemed unsuccessful if even a single operation fails. If all operations ...