Magento 2 Development Workshop Learn More

User Registration with PHP and MySQL

14 lessons

Verifying if an user exists in the database

In this lesson, we are going to learn how to check if an user with username and email already exists in a database.

Lesson Overview

In this lesson, we are going to learn:

  • How to write a SELECT query to a database table.
  • How to prepare values for a select query.
  • How to redirect a user back to the register.php script