Backend and Infrastructure

Database PDO Class and Object

Sprout Video

To talk to the database, we first open a connection using a class called PDO. This returns an object, which we set to the $pdo variable. In this tutorial we're going to talk a little more about what this means and how we use them. We'll also take a quick look at how this "new" object-oriented way of doing things is different from the old, deprecated functions.