wtvelocity
New Member
- Messages
- 9
- Reaction score
- 0
- Points
- 0
Hi im new to PHP, so maybe I'm doing something wrong.
I have a login script I copied, and am trying to put it on my site. Upon registration I get the error:
What I THINK is happening is that I have the wrong MySQL host (I'm using exofire.net).
here is my code for database.php:
The Site I'm using it on is conquestofages.exofire.net.
If anyone need more info, the source I copied from is Here:
http://www.evolt.org/article/comment/17/60265/index.html
Thanks
~WTV~
I have a login script I copied, and am trying to put it on my site. Upon registration I get the error:
Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'mysql.x10hosting.com' (1) in /home/darwin/public_html/database.php on line 6
Unknown MySQL server host 'mysql.x10hosting.com' (1)
What I THINK is happening is that I have the wrong MySQL host (I'm using exofire.net).
here is my code for database.php:
<?
/**
* Connect to the mysql database.
*/
$conn = mysql_connect("mysql.x10hosting.com", "*********", "*******") or die(mysql_error());
mysql_select_db('members', $conn) or die(mysql_error());
?>
The Site I'm using it on is conquestofages.exofire.net.
If anyone need more info, the source I copied from is Here:
http://www.evolt.org/article/comment/17/60265/index.html
Thanks
~WTV~
Last edited by a moderator: