Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server:

Results 1 to 5 of 5
  1. #1
    Apprentice nemboy55 is offline
    MemberRank
    Oct 2010 Join Date
    22Posts

    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


  2. #2
    Proficient Member Lolled is offline
    MemberRank
    Jan 2010 Join Date
    185Posts

    Re: Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server:

    Did you type gunz's db name, id and password of mssql?

  3. #3
    Veni, Vidi, Vici Arcelor is offline
    MemberRank
    Jan 2010 Join Date
    Delhi, IndiaLocation
    1,763Posts

    Re: Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server:

    Post your config.php here.

  4. #4
    Ā  Phoenix is offline
    ModeratorRank
    Mar 2009 Join Date
    6,890Posts

    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.

  5. #5
    Apprentice nemboy55 is offline
    MemberRank
    Oct 2010 Join Date
    22Posts

    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 ><



Advertisement