Magento 2 Development Workshop Learn More

Build User Login with PHP and MySQL

6 lessons

Querying Users Table with PDO MySQL

In this lesson, we are going to learn how to connect to a MySQL database with the help of PDO library, that is widely used in PHP applications.

Lesson Overview

In this lesson, we are going to learn:

  • What is DSN?
  • How to connect to a MySQL database via PDO class?