Failed to connect to MySQL: Connection timed out

I am having trouble with my button to go to “Je Profiel” what means “Your Profile”. When i click on the button it starts loading and after that there is the message: Failed to connect to MySQL: Connection timed out. Help?

Your connection code is not correct. Change line 13 to this:

$con = mysqli_connect($DATABASE_HOST,$DATABASE_USER,$DATABASE_PASS,$DATABASE_NAME);

Btw thank you for sharing your password. Change it now or you’ll be hacked by other people!

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.