Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PHP & MySQL: PDO x MySQLi

PHP & MySQL: PDO x MySQLi

Presentation held in May 2019, at an internal IXCSoft event, Chapecó - SC, Brazil.

Treating the differences between MySQLi and PDO, with examples of integration with the MySQL SGBD.

Marcos Marcolin

May 09, 2019
Tweet

More Decks by Marcos Marcolin

Other Decks in Programming

Transcript

  1. PHP Data Objects (PDO) • Native Module with PHP >

    5; • Object Oriented Paradigm; • Relational Database; • Interface; • Abstraction Layer; • Not rewrite queries;
  2. Security / Prepared Statements • PDO : using client-side (emulating);

    • MySQLi: using server-side. Client-side Server-side
  3. Transactions • PDO ::beginTransaction(); • PDO ::commit(); • PDO ::rollBack()

    • Properties: ◦ atomicity; ◦ consistency; ◦ isolation; ◦ durability.