57 thoughts on “Complete Login and Registration Application using PHP and MySQL”

      1. Warning: mysqli_connect(): (HY000/1049): Unknown database ‘loginsystem’ in C:\wamp64\www\anvesh\includes\dbh.inc.php on line 8

  1. Warning: mysqli_connect(): (HY000/1045): Access denied for user ‘root’@’localhost’ (using password: YES) in C:\xampp\htdocs\Complete-Login-and-Registration\includes\dbh.inc.php on line 8
    Connection failed: Access denied for user ‘root’@’localhost’ (using password: YES)

    what do i change in the code?

    1. Hi Rakshitha,

      As you can see in the code, this error is thrown when SQL exception is raised. You have to verify the MySQL server’s credentials and database name. It should work after that.

  2. Thanks for these great script. Bravo.
    I got the following error when i click on the edit profile button:

    Notice: Use of undefined constant TITLE – assumed ‘TITLE’ in C:\xampp\htdocs\loginsystem\edit-profile.php on line 2

  3. blank
    Darryl Santmayor

    Hey im getting an error “Warning: mysqli_connect(): (HY000/1045): Access denied for user ‘root’@’localhost’ (using password: NO) in C:\xampp\htdocs\log\includes\dbh.inc.php on line 8
    Connection failed: Access denied for user ‘root’@’localhost’ (using password: NO)”

    I created loginsystem database but can u give the sql code for table creation.

Did it help? Would you like to express?

%d bloggers like this: