11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 31 • INTRODUCING PDOwww.it-ebooks.infoOnce either commit() or rollback() is executed, autocommit mode will automatically be enabledagain.Committing a TransactionThe commit() method commits the transaction. Its prototype follows:boolean PDO::commit()Rolling Back a TransactionThe rollback() method negates any database changes made since beginTransaction() was executed. Itsprototype follows:boolean PDO::rollback()SummaryPDO offers users a powerful means for consolidating otherwise incongruous database commands,allowing for an almost trivial means for migrating an application from one database solution to another.Furthermore, it encourages greater productivity among the <strong>PHP</strong> language developers due to theseparation of language-specific and database-specific features. If your clients expect an application thatallows them to use a preferred database, you’re encouraged to keep an eye on this new extension as itmatures.626

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!