Jump to content


Photo

PHP 4.4.1 trying to connect to MySQL 4.1.18 - Page Cannot Be Displayed.


  • Please log in to reply
3 replies to this topic

#1 UPRJon

UPRJon
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 10 May 2006 - 08:57 PM

We have a Virtual Dedicated Server with godaddy.com.

Whenever we try to connect to the database we get a "The page Cannot be Displayed" message.

PHP works fine on echo commands.
MySQL database name and passwords are correct.
Our PHP Connect strings are correct.

We have tried using localhost, sparoracing.com, our virtual ip address, and so on for the hostname.

Anyone know whats up?

#2 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 10 May 2006 - 10:01 PM

Sounds like godaddy should have the answer... esp. if, as you say, everything is up and running. Even a simple "hello world" non-PHP script doesn't show?
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#3 UPRJon

UPRJon
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 10 May 2006 - 10:06 PM

[!--quoteo(post=373112:date=May 10 2006, 05:01 PM:name=fenway)--][div class=\'quotetop\']QUOTE(fenway @ May 10 2006, 05:01 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Sounds like godaddy should have the answer... esp. if, as you say, everything is up and running. Even a simple "hello world" non-PHP script doesn't show?
[/quote]
Godaddy cant answer these questions, they are morons.

Every command in PHP works (echo, print, w/e). Just when we try to connect to the MySQL database, it comes back with, "The page Cannot Be Displayed"

#4 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 11 May 2006 - 10:03 AM

please post your code for connecting to the database
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users