Jump to content
MakeWebGames

Recommended Posts

Posted

hi guys i switched hosts and i get this error when clicking register im guessing the game cannot access the host but i have done this correctly could it be the host or have i done something wrong

error when click on register:

 

Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'mysql_host' (1) in /www/sqweebs.com/r/i/k/rikdanny/htdocs/mysql.php on line 3
Unknown MySQL server host 'mysql_host' (1)

 

the mtsql host is local host and that is what ive put it as in the mysql.php

Posted

Re: Installing V1

ok one sec i think the sql_schema file myt be missing some table functions im just going to have a look thanks thought heres the file

 

$c=mysql_connect('localhost','*user*','*Pass*') or die(mysql_error());
mysql_select_db('rikdanny_1',$c);

 

EDIT:

no the sql_schema was fine hmmm

Posted

Re: Installing V1

 

ok one sec i think the sql_schema file myt be missing some table functions im just going to have a look thanks thought heres the file

 

$c=mysql_connect('localhost','*user*','*Pass*') or die(mysql_error());
mysql_select_db('rikdanny_1',$c);

 

EDIT:

no the sql_schema was fine hmmm

Use somethink like

<?php //I only put <?php for the colors.
$config = array('HostName' => 'localhost', 'UserName' => 'DATABASE USER', 'PassWord' => 'DATABASE PASSWORD', 'DataBase' => 'DATABASE NAME');

$c = mysql_connect($config['HostName'], $config['UserName'], $config['PassWord']) or die(mysql_error());
mysql_select_db($config['DataBase'], $c) or die(mysql_error());

Just edit the stuff where it says DATABASE USER, DATABASE PASS, DATABASE NAME. Should be done then.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...