Connecting to Database [solved]

My web hosting provider just did a bunch of upgrades to there system. Now my Database info is not properly showing correctly.
My old phpmyadmin use to say server: localhost. Now it says server: custsql-ipw05.eigbox.net Do i just need to change the localhost to custsql-ipw05.eigbox.net to make it work?

my info currently looks like this:
?php
$username=“myusername”;
$password=“mypassword”;
$database=“totals”;
mysql_connect(localhost,$username,$password);
mysql_select_db($database) or die( “Unable to select database”);

Yes, if the host name is the only thing that changed, you should be fine with just changing the host name in your scripts. Be aware however, that strings are usually in quotes:

[code]mysql_connect(“localhost”,$username,$password);[/quote]

Sponsor our Newsletter | Privacy Policy | Terms of Service