0Pricing
PHP Academy · Lesson

Transactions with PDO

Group multiple queries into atomic transactions with beginTransaction and commit.

What is a Transaction?

A transaction groups multiple SQL statements into a single atomic unit: all succeed (commit) or all roll back.

ACID Properties

Transactions guarantee ACID: Atomicity, Consistency, Isolation, Durability.

All lessons in this course

  1. Connecting to MySQL with PDO
  2. Prepared Statements and Binding
  3. Fetching Results with PDO
  4. Transactions with PDO
← Back to PHP Academy