PHP·98 questions

How to work with transactions?

Answer
$pdo->beginTransaction().
Execute queries.
$pdo->commit() — confirm.
$pdo->rollBack() — rollback.
try/catch for error handling.
Was this answer helpful?

More questions in this topic

Related questions from other topics