I am having lots of trouble getting a mysql database to work for me =/
I want to run this database on a subdomain to my website.
I have created a subdomain: Alphascout.clanxhhx.bliztek.com
The document root to this subdomain is: home/public_html/alpha scout
I have filled in all of the files to the database correctly.. - I think - but when I go to the website, I get this error:
Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'alphascoutclanxhhxbliztekcom' (1) in /home/clanxhhx/public_html/AlphaScout/include/database.php on line 24
Unknown MySQL server host 'alphascoutclanxhhxbliztekcom' (1)
This is the code of where the error is happening:
CODE
/* Class constructor */
function MySQLDB(){
/* Make connection to database */
$this->connection = mysql_connect(alphascout.clanxhhx.bliztek.com, DB_user, DB_pass) or die(mysql_error());
mysql_select_db(alphascout.clanxhhx.bliztek.com, $this->connection) or die(mysql_error());
I dont understand.. its not connecting to the database.. could anyone help?