please, how can i settup this, in all config files i put my sql server acces, and i get a error when i try to acces my web, its like this:
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: localhost in C:\xampp\htdocs\secure\config.php on line 12
Cant connect to database
what is the error, please :S, register works, he register a account, also can not be the configuration, is a web bug :S, help me to fix it or anything, heres the config file:
i have tryied to put in sql host localhost, too, and 127.0.0.1 but it comes the same, please help me :(PHP Code:<?
@session_start();
//MSSQL Server configuration
$_MSSQL[Host] = "INSIDE/SQLEXPRESS";
$_MSSQL[User] = "sa";
$_MSSQL[Pass] = "******";
$_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';
?>


Reply With Quote

