Summary and Perspectives

This lesson summarizes everything that we have covered in this course.

We'll cover the following...

We’ve learned a lot throughout this course. Here are some key takeaways:

  • To connect to the database in PHP, use the PDO extension like this: $connection = new PDO($dsn, $username, $password, $options);
  • To run a query, we either use the PDO::query method if no variable is going to be used in the query or the prepare() and execute() functions if at least one variable is going to be used.
...