Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

I Need A V14 Website Template

Newbie Spellweaver
Joined
Nov 5, 2009
Messages
83
Reaction score
7
does any1 have a website that actually works for v14 via mssqlexpress cuz i just keep getting the same error with my files and im not 100% sure what i put for my host\db

My Errors:
Code:
Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\wamp\www\config.php on line 9

Warning: mysql_connect() [function.mysql-connect]: [2002] php_network_getaddresses: getaddrinfo failed: No such host is kn (trying to connect via tcp://Jake-PC\SQLEXPRESS:3306) in C:\wamp\www\config.php on line 9

Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\wamp\www\config.php on line 9
php_network_getaddresses: getaddrinfo failed: No such host is known.

My Config Settings:
Code:
<?php 
if(stristr($_SERVER['PHP_SELF'], "config.php")) die('asdada'); 
$host = "Jake-PC\SQLEXPRESS"; // host mysql
$user = "sa"; // mysql username
$pass = "MyPassIsHere"; // mysql password
$db = "Jake-PC"; // mysql db

mysql_connect($host,$user,$pass) or die(mysql_error());
mysql_select_db($db) or die(mysql_error());

function nw($N, $C){
  $reg = mysql_query("INSERT INTO accounts (username, password, accesslevel) VALUES( '$N', '$C', '100')")or die(mysql_error());
  return $reg;
  }
function exi($user){
$check = mysql_query("SELECT * FROM accounts WHERE username = '$user'");
$check2 = mysql_num_rows($check);
return $check2;
}
  
  ?>


I think it looks fine but what do i know.. it does not work with localhost or 127.0.0.1 as the host either...

Oh and these are Allstarflyff's files
 
Mythic Archon
Joined
Sep 27, 2008
Messages
742
Reaction score
46
does any1 have a website that actually works for v14 via mssqlexpress cuz i just keep getting the same error with my files and im not 100% sure what i put for my host\db

My Errors:
Code:
Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\wamp\www\config.php on line 9

Warning: mysql_connect() [function.mysql-connect]: [2002] php_network_getaddresses: getaddrinfo failed: No such host is kn (trying to connect via tcp://Jake-PC\SQLEXPRESS:3306) in C:\wamp\www\config.php on line 9

Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\wamp\www\config.php on line 9
php_network_getaddresses: getaddrinfo failed: No such host is known.

My Config Settings:
Code:
<?php 
if(stristr($_SERVER['PHP_SELF'], "config.php")) die('asdada'); 
$host = "Jake-PC\SQLEXPRESS"; // host mysql
$user = "sa"; // mysql username
$pass = "MyPassIsHere"; // mysql password
$db = "Jake-PC"; // mysql db

mysql_connect($host,$user,$pass) or die(mysql_error());
mysql_select_db($db) or die(mysql_error());

function nw($N, $C){
  $reg = mysql_query("INSERT INTO accounts (username, password, accesslevel) VALUES( '$N', '$C', '100')")or die(mysql_error());
  return $reg;
  }
function exi($user){
$check = mysql_query("SELECT * FROM accounts WHERE username = '$user'");
$check2 = mysql_num_rows($check);
return $check2;
}
  
  ?>


I think it looks fine but what do i know.. it does not work with localhost or 127.0.0.1 as the host either...

Oh and these are Allstarflyff's files

$host = "Jake-PC\SQLEXPRESS"; // host mysql

Lol'd. It has to be localhost. You mentioned that it does not work with localhost, but it actually should.
 
Banned
Banned
Joined
Jul 4, 2005
Messages
180
Reaction score
26
this crappy coding is not for mssql from v14 files :)
this was made for mysql database type , i suggest you dig more untill u find something better
 
Newbie Spellweaver
Joined
Nov 5, 2009
Messages
83
Reaction score
7
Code:
$host = "localhost"; // host mysql
$user = "sa"; // mysql username
$pass = "jake0991"; // mysql password
$db = "Jake-PC\SQLEXPRESS"; // mysql db

Code:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'sa'@'localhost' (using password: YES) in C:\wamp\www\config.php on line 9
Access denied for user 'sa'@'localhost' (using password: YES)


and i cannot find a error txt log or anything
 
Divine Celestial
Joined
May 2, 2009
Messages
862
Reaction score
179
Code:
Warning: [B][I][U][COLOR="Red"]mysql[/COLOR][/U][/I][/B]_connect() [function.mysql-connect]: Access denied for user 'sa'@'localhost' (using password: YES) in C:\wamp\www\config.php on line 9
Access denied for user 'sa'@'localhost' (using password: YES)

*Cough, Cough*
 
Back
Top