Hi! I am setting up a script and I'm getting an error on mysql_select_db. (returns false) See script below. The message that appears is: Could not select database. I am sure the database name is correct in the setup (entersuk_InfiniteR) and cannot get what the problem is. Localhost, username and password is correct and there is no error on this. Any idea?? function DB_connect() { global $MySQL_server, $MySQL_user, $MySQL_password, $MySQL_database; global $DB_LinkID, $blahtest; $DB_LinkID = mysql_connect($MySQL_server, $MySQL_user, $MySQL_password) or die("Could not connect : " . mysql_error()); mysql_select_db($MySQL_database) or die("Could not select database."); return $DB_LinkID; } Tor
I think the error lies here as simple as may seem $DB_LinkID = mysql_connect (should be no spaces) otherwise that looks fine unless you have the exact same code again on the page $db _link etc ps php mysql is bitchy hope this helps