Need help :S

Results 1 to 3 of 3
  1. #1
    Member FishnZone is offline
    MemberRank
    Jun 2010 Join Date
    53Posts

    Need help :S

    I'm using in Xampp 1.8.1 & ijji website 2010.
    Error:
    PHP Code:
    Notice: Use of undefined constant Host assumed 'Host' in C:\xampp\htdocs\secure\config.php on line 7

    Notice
    : Use of undefined constant User assumed 'User' in C:\xampp\htdocs\secure\config.php on line 8

    Notice
    : Use of undefined constant Pass assumed 'Pass' in C:\xampp\htdocs\secure\config.php on line 9

    Notice
    : Use of undefined constant DBNa assumed 'DBNa' in C:\xampp\htdocs\secure\config.php on line 10

    Fatal error
    Call to undefined function mssql_connect() in C:\xampp\htdocs\secure\config.php on line 12 
    config.php
    PHP Code:
    <?

    @session_start();

    //MSSQL Server configuration

    $_MSSQL[Host]               = "USER-A1D076756B\SQLEXPRESS";
    $_MSSQL[User]               = "salo";
    $_MSSQL[Pass]               = "33212322";
    $_MSSQL[DBNa]               = "GunzDB";

    $r mssql_connect($_MSSQL[Host], $_MSSQL[User], $_MSSQL[Pass]) or die("Cant connect to database");
    mssql_select_db($_MSSQL[DBNa], $r);

    // Here you set the language for the panel
    // If you set this to english, the panel will try to load lang/english.php
    $_CONFIG[Language]  = "english";

    // Gunz Database Configuration
    $_CONFIG[AccountTable]  = "Account";
    $_CONFIG[LoginTable]    = "Login";
    $_CONFIG[CharTable]     = "Character";
    $_CONFIG[CItemTable]    = "CharacterItem";
    $_CONFIG[AItemTable]    = "AccountItem";
    $_CONFIG[ClanTable]     = "Clan";
    $_CONFIG[ClanMembTable] = "ClanMember";
    $_CONFIG[ClanLogTable]  = "ClanGameLog";

    // Plugins Configuration
    // To Disable, set the variable to 0
    // To Enable, set the variable to 1

    $_CONFIG[CountryBlock]  = 0;        // Add functions to Block / Unblock access to your GunZ Server

    //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]       = "";

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

    // Here you set the language for the panel
    // If you set this to english, the panel will try to load lang/english.php
    $_CONFIG[Language]  = "english";

    // Gunz Database Configuration
    $_CONFIG[LoginTable]    = "Login";
    $_CONFIG[CharTable]     = "Character";
    $_CONFIG[ClanTable]    = "Clan";
    $_CONFIG[ClanmemberTable]    = "ClanMember";


    ?>

    What i need to do ?

    I try to do
    "extension=php_mssql.dll" and ";short_open_tag = On"

    *Error from Xampp
    untitled.png
    Last edited by FishnZone; 15-05-13 at 08:01 PM.


  2. #2
    In Progress... FFXIV... Anju is offline
    MemberRank
    Oct 2010 Join Date
    Mist Ward 7 #38Location
    1,946Posts

    Re: Need help :S

    I always had problems with XAMP. Try using AppServ.

  3. #3
    Pee Aitch Pee Dave is offline
    MemberRank
    Mar 2011 Join Date
    The NetherlandsLocation
    722Posts

    Re: Need help :S

    That's because there are no quotes inside the brackets.

    Example:
    $_MYSQL[Host] > $_MYSQL['Host']



Advertisement