PHP

Check if the username already exists in PHP1 min read

In this tutorial we will discover different method to check if the username already exists in the database with PHP and MySQL.

Method  1: Using PDO
To check whether a particular value exists in the database, you just need to execute a SELECT query, extract a row, and check if something has been extracted.

 




Method 2: Using MySQLi

 

Leave a Comment