I am trying to connect to a mysql database in my PHP script, this is my code
$link = mysqli_connect($dbServer, $dbUsername, $dbPassword, $dbUsername);
(The variables are stored in another file)
When I try to connect to the database I get:
Warning: mysqli_connect(): Access denied
However, when I do the link and I use plaintext strings, the connection works. I have checked and all of the variables that I have used can be acessed in this file but for some reason it still isn't working. Does anyone have any idea what the issue is?
Many Thanks