Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !

Results 1 to 16 of 16
  1. #1
    Account Upgraded | Title Enabled! yurij13 is offline
    MemberRank
    Jul 2007 Join Date
    387Posts

    Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !

    well heres what i get

    Fatal error: Call to undefined function mssql_connect() in C:\AppServ\www\blueweb\include\config.php on line 18


    heres the config.php
    Code:
    <?php
    session_start();
    require('class_sqlfunctions.php');
    
    /**********************************
    | @author SuperWaffle.            |
    | Fill in the correct info below. |
    *********************************/
    class connect
    {
      var $host = "MYNAME\SQLEXPRESS";   // Host, usually PCNAME\SQLEXPRESS
      var $user = "sa";                      // Username is usually empty.
      var $pass = "*******";                     // Password is usually empty.
      var $dbn  = "GunzDB";              // Database name is most likely GunzDB.
    
      public function __construct()
      {
        $con = mssql_connect($this->host, $this->user, $this->pass) or die("<center><font color='red'>Failed to connect to the database!</font></center>");
     LINE 18 i gues.. >>>>>   mssql_select_db($this->dbn, $con) or die("<center><font color='red'>Failed to select the database!</font></center>");
      }
    }
    new connect();
    
    
    /*** The name of your server.
         This will show up in the title and on every page H1. ***/
    $gunzname = "CGunZ";
    
    /*** Location of your emblem folder.
         Example: http://gunz.com/emblem = emblem ***/
    $emblemfolder = "emblem";
    
    /*** Define the account name(s) of the admin(s) here, seperate with ,"this"
         Those will have access to the manage updates, manage events, item shop and IP Ban functions. ***/
    $admins = array("acc0", "acc1", "acc2", "acc3");
    ?>


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

    Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !

    Did you read the F.A.Q on the website release page?

    F.A.Q:
    Q: I'm getting the error: "Fatal error: Call to undefined function mssql_connect()".
    A: Enable the php_mssql.dll extension in your php.ini. Remove the ; in front of the line and restart your Apache.

  3. #3
    Account Upgraded | Title Enabled! yurij13 is offline
    MemberRank
    Jul 2007 Join Date
    387Posts

    Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !

    Quote Originally Posted by SuperWaffle View Post
    Did you read the F.A.Q on the website release page?

    F.A.Q:
    Q: I'm getting the error: "Fatal error: Call to undefined function mssql_connect()".
    A: Enable the php_mssql.dll extension in your php.ini. Remove the ; in front of the line and restart your Apache.

    my appserve doesent have php.ini :O

  4. #4
    Member Beeldscherm is offline
    MemberRank
    Dec 2010 Join Date
    The NetherlandsLocation
    64Posts

    Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !

    lol i know error...

    var $host = "MYNAME\SQLEXPRESS"; // Host, usually PCNAME\SQLEXPRESS
    var $user = "sa"; // Username is usually empty.
    var $pass = "*******"; // Password is usually empty.
    var $dbn = "GunzDB"; // Database name is most likely GunzDB.

    FIXED:

    var $host = "MYNAME"; // Host, usually PCNAME\SQLEXPRESS
    var $user = "sa"; // Username is usually empty.
    var $pass = "*******"; // Password is usually empty.
    var $dbn = "GunzDB"; // Database name is most likely GunzDB.


    if you compute rname is MYNAME u need delete \SQLEXPRESS, believe me that is the error !

  5. #5
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !

    Quote Originally Posted by Beeldscherm View Post
    lol i know error...

    var $host = "MYNAME\SQLEXPRESS"; // Host, usually PCNAME\SQLEXPRESS
    var $user = "sa"; // Username is usually empty.
    var $pass = "*******"; // Password is usually empty.
    var $dbn = "GunzDB"; // Database name is most likely GunzDB.

    FIXED:

    var $host = "MYNAME"; // Host, usually PCNAME\SQLEXPRESS
    var $user = "sa"; // Username is usually empty.
    var $pass = "*******"; // Password is usually empty.
    var $dbn = "GunzDB"; // Database name is most likely GunzDB.


    if you compute rname is MYNAME u need delete \SQLEXPRESS, believe me that is the error !
    no offence , but wtf is this shit.The server's name depends about how you installed mssql. To get it , open up mssql and copy the server's name.

    I'll repeat what SuperWaffle said but with more details.

    Open up start , run, type php.ini and hit enter.
    Search for mssql,remove the ; at the beginning of the line then restart apache.
    Last edited by Vusion; 20-07-11 at 10:34 AM.

  6. #6
    Account Upgraded | Title Enabled! yurij13 is offline
    MemberRank
    Jul 2007 Join Date
    387Posts
    Quote Originally Posted by Vusion View Post
    no offence , but wtf is this shit.The server's name depends about how you installed mssql. To get it , open up mssql and copy the server's name.

    I'll repeat what SuperWaffle said but with more details.

    Open up start , run, type php.ini and hit enter.
    Search for mssql,remove the ; at the beginning of the line then restart apache.
    Yeah, I tried this, doesn't fix it :(. Anyone else wanna suggest anything ? :/
    Posted via Mobile Device

  7. #7
    Account Upgraded | Title Enabled! yurij13 is offline
    MemberRank
    Jul 2007 Join Date
    387Posts

    Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !

    Cmone ppl!!!!!!!!!!!! Need this fix, its everywhere, searched, no fix :(!!

    can some1 on msn help me out plz....
    or something!
    Last edited by yurij13; 20-07-11 at 09:43 PM.

  8. #8
    Intelligent DoucheBag jur13n is offline
    MemberRank
    Jan 2008 Join Date
    Zwolle,Location
    1,946Posts

    Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !

    Quote Originally Posted by Vusion View Post
    no offence , but wtf is this shit.The server's name depends about how you installed mssql. To get it , open up mssql and copy the server's name.

    I'll repeat what SuperWaffle said but with more details.

    Open up start , run, type php.ini and hit enter.
    Search for mssql,remove the ; at the beginning of the line then restart apache.
    it is true,
    have seen this before.

    But,

    did u replace the ntwdblib in the php folder?
    if no.

    atachment has download for the ntwdblib
    Attached Files Attached Files

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

    Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !

    AppServ has php.ini it should be installed in the Windows/System32 folder

  10. #10
    Intelligent DoucheBag jur13n is offline
    MemberRank
    Jan 2008 Join Date
    Zwolle,Location
    1,946Posts

    Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !

    Quote Originally Posted by wesman2232 View Post
    AppServ has php.ini it should be installed in the Windows/System32 folder
    superwaffles scripts require the modified ntwdblib.
    atleast it worked for me

  11. #11
    Enthusiast EpicSkillz1 is offline
    MemberRank
    Jul 2011 Join Date
    35Posts

    Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !

    People that this do work upload you Xammp/Wamp and give it?

  12. #12
    Asylum Gamers WickedsInferno is offline
    MemberRank
    Jun 2011 Join Date
    Deep In AsylumLocation
    394Posts

    Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !

    Damn i get that two when i use that web .

  13. #13
    Member yawamo is offline
    MemberRank
    Apr 2011 Join Date
    58Posts

    Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !

    only edit the php.ini then display_errors = on change it into display_errors = off

    its easy

  14. #14
    A Lost Marine gago117 is offline
    MemberRank
    Feb 2010 Join Date
    PhilippinesLocation
    420Posts

    Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !

    Wow!! He needs to solve the sql connection issue, in order to do that, you need to turn on the error display... why in the hell you want to turn it off.


    Think before you post.

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

    Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !

    Quote Originally Posted by jur13n View Post
    superwaffles scripts require the modified ntwdblib.
    atleast it worked for me
    Modified? It's just a .dll from a older version to support the function.

    @OP: Go find my unofficial fix thread.

  16. #16
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: Website stupid sql error >.<!!!!!!!!!!!!!!!!!!! HELP ME OUT PLZ !

    oh yea I forgot the ntwdlib.dll

    ntwdblib.dll



Advertisement