CODE
<?php
// Connects to your Database
mysql_connect("your.hostaddress.com", "username", "password") or die(mysql_error());
mysql_select_db("Database_Name") or die(mysql_error());
// Connects to your Database
mysql_connect("your.hostaddress.com", "username", "password") or die(mysql_error());
mysql_select_db("Database_Name") or die(mysql_error());
I have entered the following:
CODE
<?php
// Connects to your Database
mysql_connect("xbox-community.zxq.net ", "xbox-community_zxq_net_login", "******") or die(mysql_error());
mysql_select_db("xbox-community_zxq_net_loginscript ") or die(mysql_error());
// Connects to your Database
mysql_connect("xbox-community.zxq.net ", "xbox-community_zxq_net_login", "******") or die(mysql_error());
mysql_select_db("xbox-community_zxq_net_loginscript ") or die(mysql_error());
What have i Entered wrong because i get this error:
CODE
Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'xbox-community.zxq.net ' (1) in /www/zxq.net/x/b/o/xbox-community/htdocs/login.php on line 3
Unknown MySQL server host 'xbox-community.zxq.net ' (1)
Unknown MySQL server host 'xbox-community.zxq.net ' (1)
I'm sure it is to do with the "your.hostname.com" section that I have done incorrectly...
Thanks for help in advance,
SD
Edit: In the subject it is "In" not "Is This" and sorry if this is the wrong place,