+ Reply to Thread
Results 1 to 7 of 7

Thread: Need some help

  1. #1
    facination is offline x10Hosting Member facination is an unknown quantity at this point
    Join Date
    May 2010
    Posts
    4

    Need some help

    Well, i have no idea how to make my php to work.
    I kind of uploaded it but all i get is : Fatal error: Call to undefined function mssql_connect() in /home/wesley11/public_html/Home/secure/config.php on line 12

    Ive bin on phpfreaks for this to and they said all i had to do is find a host that supports mysql.
    And this one does, but how do i get it to connect with my own mysql??

  2. #2
    AngusThermopyle is offline x10Hosting Member AngusThermopyle is an unknown quantity at this point
    Join Date
    Nov 2009
    Posts
    84

    Re: Need some help

    Quote Originally Posted by facination View Post
    Well, i have no idea how to make my php to work.
    I kind of uploaded it but all i get is : Fatal error: Call to undefined function mssql_connect() in /home/wesley11/public_html/Home/secure/config.php on line 12
    It should be mysql_connect . Open config.php and edit line 12 to the correct function.

  3. #3
    facination is offline x10Hosting Member facination is an unknown quantity at this point
    Join Date
    May 2010
    Posts
    4

    Re: Need some help

    Quote Originally Posted by c.solomon View Post
    It should be mysql_connect . Open config.php and edit line 12 to the correct function.
    Yea i actually already did that but i thought it maybe needed some extra or so.

    Here's the script

    Code:
    <?
    
    @session_start();
    
    //MSSQL Server configuration
    
    $_MSSQL[Host]               = "(My server name, found at login screen of mysql )";
    $_MSSQL[User]               = "sa";
    $_MSSQL[Pass]               = "(Just my pw)";
    $_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]               = "(Same)";
    $_MYSQL[User]               = "sa";
    $_MYSQL[Pass]               = "(Same)";
    $_MYSQL[DBNa]               = "forum";
    
    //Configuration
    
    $_CONFIG[NewsFID]           = 4;
    $_CONFIG[EventsFID]         = 6;
    $_CONFIG[vBulletinPrefix]   = "iEntertainment - gunz";
    $_CONFIG[ForumURL]          = "http://ient-gunz.forummotion.com/";
    
    //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";
    
    
    ?>

  4. #4
    techairlines's Avatar
    techairlines is offline x10 Flyer techairlines has much to be proud oftechairlines has much to be proud of
    Join Date
    Jul 2009
    Location
    New York City
    Posts
    2,853

    Re: Need some help

    Your script has references to MSSQL, which is another form of SQL from Microsoft for Windows servers.

    The following is the only thing I see for MySQL:

    Code:
    //MySQL Server configuration
    
    $_MYSQL[Host]               = "(Same)";
    $_MYSQL[User]               = "sa";
    $_MYSQL[Pass]               = "(Same)";
    $_MYSQL[DBNa]               = "forum";
    Your error has been triggered by the MSSQL parts as MSSql is not supported here. We use Linux servers.
    Best regards,
    Brian Yang - TechAirlines


    How am I doing? Click the star button at the bottom left to rate this post. Thanks.
    Terms of Service | Account Portal | Wiki

  5. #5
    facination is offline x10Hosting Member facination is an unknown quantity at this point
    Join Date
    May 2010
    Posts
    4

    Re: Need some help

    Quote Originally Posted by techairlines View Post
    Your script has references to MSSQL, which is another form of SQL from Microsoft for Windows servers.

    The following is the only thing I see for MySQL:

    Code:
    //MySQL Server configuration
    
    $_MYSQL[Host]               = "(Same)";
    $_MYSQL[User]               = "sa";
    $_MYSQL[Pass]               = "(Same)";
    $_MYSQL[DBNa]               = "forum";
    Your error has been triggered by the MSSQL parts as MSSql is not supported here. We use Linux servers.
    In other words..., it'll never work on here?

  6. #6
    techairlines's Avatar
    techairlines is offline x10 Flyer techairlines has much to be proud oftechairlines has much to be proud of
    Join Date
    Jul 2009
    Location
    New York City
    Posts
    2,853

    Re: Need some help

    Quote Originally Posted by facination View Post
    In other words..., it'll never work on here?
    Try replacing all the instances of MSSQL with MYSQL (such as mssql_connect to mysql_connect).
    Best regards,
    Brian Yang - TechAirlines


    How am I doing? Click the star button at the bottom left to rate this post. Thanks.
    Terms of Service | Account Portal | Wiki

  7. #7
    vishal's Avatar
    vishal is offline -::-X10 Guru-::- vishal has a brilliant futurevishal has a brilliant future
    Join Date
    Nov 2009
    Location
    INDIA
    Posts
    5,254

    Re: Need some help

    **Moved to programming help ***
    Regards ~ Vishal
    Giving Reputation (at bottom of my post ) is the best way to encourage the person who helped you on forums.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers