-
Apprentice
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server:
hey i have a problem iv followed tuts and stated the required apps
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: COMPUTER-2832\SQLEXPRESS in C:\xampp\htdocs\GunZ\secure\config.php on line 12
Cant connect to database
i use xampp could someone please help.. thanks
-
-
Proficient Member
Re: Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server:
Did you type gunz's db name, id and password of mssql?
-
Re: Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server:
Post your config.php here.
-
Re: Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server:
It's a php.ini error. I've posted about it at least more than 10 times out here and I can't do it all the time. Please look around and you'll find the solution.
-
Apprentice
Re: Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server:
<?
@session_start();
//MSSQL Server configuration
$_MSSQL[Host] = "COMPUTER-2832\SQLEXPRESS";
$_MSSQL[User] = "sa";
$_MSSQL[Pass] = "nemesis";
$_MSSQL[DBNa] = "GunzDB";
$r = mssql_connect($_MSSQL[Host], $_MSSQL[User], $_MSSQL[Pass]) or die("Cant connect to database");
mssql_select_db($_MSSQL[DBNa], $r);
//MySQL Server configuration
$_MYSQL[Host] = "localhost";
$_MYSQL[User] = "root";
$_MYSQL[Pass] = "pasword";
$_MYSQL[DBNa] = "foro";
//Configuration
$_CONFIG[NewsFID] = 2;
$_CONFIG[EventsFID] = 0;
$_CONFIG[vBulletinPrefix] = "xxxxx";
$_CONFIG[ForumURL] = "http://xxx.tk/";
//Offline page
$_CONFIG[OfflinePage] = "";
$path['root'] = 'firma/';
$path['emblems'] = 'clan/emblema/';
// Gunz Database Configuration
$_CONFIG[LoginTable] = "Login";
$_CONFIG[CharTable] = "Character";
$_CONFIG[ClanTable] = "Clan";
$_CONFIG[ClanmemberTable] = "ClanMember";
$color[255] = array(255,153,51); // Administrator
$color[254] = array(255,153,51); // Developer/Gamemaster
$color[253] = array(255,255,255); // Banned
$color[252] = array(255,153,51); // Hidden GM
$color[2] = array(0,68,255); // User With Jjang
$color[0] = array(255,255,255); // Normal User
$table['account'] = 'dbo.Account';
$table['character'] = 'dbo.Character';
$table['clanmember'] = 'dbo.ClanMember';
$table['clan'] = 'dbo.Clan';
?>
and iv tried your fixs phoenix ><