Server Connection, PHP

Hello there folks!
Here’s the gist: PHP connect via localhost works but not mysqlXX.000webhost.com, how do I make it work?

Added Info:
I am currently using “localhost” for my server connection in PHP. However I am working with a group and I am trying to create PHP scripts that connect to the database via the mysql server instead of localhost.

I have tried using mysql1.000webhost.com to no avail as well as other random numbers! I’m at a loss.
Every forum posting I’ve seen mentions mysqlxx.000webhost.com and older posts mention using something other than localhost. If I use localhost everything works fine online, but if I try using my local repo copy it breaks as there is no localhost sql server running. :disappointed: .

What server are you on?
Do you know what mysql server you are on?

You need to change out localhost for the remote 000webhost mysql server you are on I believe…