Querying Users Table with PDO MySQL

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

In this lesson, we are going to learn the following:

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

Watch the video.

https://youtu.be/FSQzPnt1mVw

Do you want to learn more about user registration? Join the course!

The course shows how to build User login and logout functionality with PHP and MySQL. In the study, we will learn all the essential basics of working with PHP sessions to preserve user authentication. After the course, you will be familiar with the PDO MySQL driver and PDO classes that can be used for working with the MySQL database.