I'm having a problem connecting to a MySQL database. It's not a problem with the host or username, as they appear to connect fine. However, I'm then unable to connect to a database that definitely exists, and I'm definitely using the correct database name:
mysql_connect("localhost","burnin56_) or die("Unable to connect to database");
@mysql_select_db("trafficexchange") or die("Unable to select database");
From that code, I get the "unable to select database" message. Any ideas as to what I'm doing that is preventing me from accessing the database?