Microsoft SQL 2008 bug?

Results 1 to 11 of 11
  1. #1
    Member Ionslash is offline
    MemberRank
    Jan 2007 Join Date
    California.Location
    63Posts

    Microsoft SQL 2008 bug?

    Whenever I try to upload the admin panel to my website I get this error.


    Fatal error: Call to undefined function: odbc_connect() in /home/ilupo0/public_html/c/functions.php on line 17

    Someone said it was because I use SQL 2008 edition, but my 2005 won't work because I have vista. How can I either..
    1. Enable vista to use my 2005 SQL or
    2. Fix that error.


    My config.php (password is edited)

    Code:
    <?php
        if( !ereg("index.php", $_SERVER['PHP_SELF']) )
        {
            header("Location: index.php");
            die();
        }
    
       ///////////////////////////////////
      // Emisand's Gunz Admin Panel /////
     /// -- Configuration File  -- /////
    ///////////////////////////////////
    
    //MSSQL Server configuration
    
    $_MSSQL[Host]   = "BILLY-PC";    // MSSQL Server HOST, it can be an IP Address or a computer name
    $_MSSQL[User]   = "sa";                     // MSSQL User
    $_MSSQL[Pass]   = "jesusnr1k?";                       // MSSQL Password
    $_MSSQL[DBNa]   = "GunzDB";                 // Gunz Database Name
    
    // 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
                                        // to selected countries
    
    ?>


  2. #2
    Account Upgraded | Title Enabled! Trilest is offline
    MemberRank
    Apr 2009 Join Date
    The NetherlandsLocation
    549Posts

    Re: Microsoft SQL 2008 bug?

    If you can't run an sql server then how do you want to connect to it with this file oO ?

  3. #3
    Member Ionslash is offline
    MemberRank
    Jan 2007 Join Date
    California.Location
    63Posts

    Re: Microsoft SQL 2008 bug?

    I can run 2008, but not the 2005 installer because it says it doesn't support my operating system.

  4. #4
    Music<3 Katsuro is offline
    MemberRank
    Oct 2006 Join Date
    Kailua-Kona, HILocation
    1,051Posts

    Re: Microsoft SQL 2008 bug?

    Make sure you did your ODBC Properly.
    I have used 2008 just fine before.

  5. #5
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Microsoft SQL 2008 bug?

    Quote Originally Posted by Katsuro View Post
    Make sure you did your ODBC Properly.
    I have used 2008 just fine before.
    and you can do the ODBC by going to Start > Run > odbcad32 then you go to SystemDSN and make the odbc :) there is tuts if nor not sure how, just look :D

  6. #6
    Account Upgraded | Title Enabled! Guy is offline
    MemberRank
    Apr 2009 Join Date
    919Posts

    Re: Microsoft SQL 2008 bug?

    Looks like ODBC isn't compiled with your build of PHP..

  7. #7
    Member Ionslash is offline
    MemberRank
    Jan 2007 Join Date
    California.Location
    63Posts

    Re: Microsoft SQL 2008 bug?

    And now I have this problem.


    Fatal error: Call to undefined function: mssql_connect() in /home/ilupo0/public_html/adminv2/config.php on line 19

  8. #8
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Microsoft SQL 2008 bug?

    my fix thread can help you with that ;)

  9. #9
    Account Upgraded | Title Enabled! Guy is offline
    MemberRank
    Apr 2009 Join Date
    919Posts

    Re: Microsoft SQL 2008 bug?

    Quote Originally Posted by Ionslash View Post
    And now I have this problem.


    Fatal error: Call to undefined function: mssql_connect() in /home/ilupo0/public_html/adminv2/config.php on line 19
    Now you're using a release without MSSQL compiled into PHP..

  10. #10
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Microsoft SQL 2008 bug?

    Quote Originally Posted by gWX0 View Post
    Now you're using a release without MSSQL compiled into PHP..
    what? I bet your confusing a lot of people.
    The most normal reason is because their ntwdblib.dll doesn't support MSSQL 2005 anymore (I'm pretty sure that's what it is)
    They can fix it by following the guide in my Unofficial Fix Thread.

  11. #11
    Ragezone OG FrostElite is offline
    MemberRank
    Sep 2008 Join Date
    United StatesLocation
    1,880Posts

    Re: Microsoft SQL 2008 bug?

    Try re downloading SQL



Advertisement