Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

View Error on DB-Connect

Status
Not open for further replies.

FederalProgrammer

Programmer
Jul 2, 2003
318
CA
in this following line of code:
Code:
$connection = mysql_connect($connect_host,$connect_user,$connect_password) or Die("Unable to connect to database."); 
$selection = mysql_select_db($connect_database) or Die("Unable to select database");

is there a way to see why I'm getting "Unable to select Database". I want to see what error has caused the "Die" to run...

By the way, this code works on one of my servers and doesn't work on the other!!!! (I have made sure to change the username and passwords accordingly though)


---------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top