Warning: mysqli_connect(): (HY000/1045): Access denied for user \'username\'@\'localhost\' (using password: YES) in C:\\Users\\xampp\\htdocs\\PHP_Login_Script
This is your code:
The only error that causes this message is that:
DB_USER
but you're calling after as DB_USERNAME
.Please be more careful next time.
It is better for an entry-level programmer that wants to start coding in PHP
not to use what he or she does not know very well.
ONLY as advice, please try to use (for the first time) code more ubiquitous.
ex: do not use the define()
statement, try to use variables declaration as $db_user = 'root';
Have a nice experience :)