Help - Search - Members - Calendar
Full Version: What Do I Change Is This Php Script?
Zymic Webmaster Forums > Web Design & Development > General Web Design Discussion
Vaisor
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());


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());


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)


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,
Tom
your.hostaddress.com should be 'localhost'.
Vaisor
ooh that would make sense wink.gif thanks a lot
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.