Connecting to MySQL Database problems.
Ok so I am very new to PHP and have been following numerous tutorials in making user registration and login possible on a personal project I am working on. The issue I have is that every time I enter my hostname, database name, password and other info it fails every time. In every tutorial the person connects to the local database they have created where as mine is set up on the web via my GoDaddy Hosting Account. I also don't understand why they all do this to a local host database as any forms filled in on the hosting account server won't go to their database on their computer, right? Hopefully my question isn't too stupid and I find an answer.