Quote Originally Posted by Nightwalker83 View Post
To my surprise the server uses "localhost" to connect the the database rather than having to put the name or url on the site in the php.
It's little wonder your code never worked if you are confusing URLs with host names.