MSSQL on Web

Results 1 to 5 of 5
  1. #1
    Apprentice lucasabbud is offline
    MemberRank
    Jun 2011 Join Date
    20Posts

    ! MSSQL on Web

    Hi, i'm using Mucore 1.0.8, with ODBC connection.

    I'm using a template which has this:

    $Sdaaq = mssql_query("SELECT count(*) FROM MEMB_STAT WHERE ConnectStat = '1'");
    $online= mssql_result($Sdaaq, 0, 0);
    //
    $Sdaaq1 = mssql_query("SELECT count(*) FROM Guild");
    $guild= mssql_result($Sdaaq1, 0, 0);
    //
    $Sdaaq2 = mssql_query("SELECT count(*) FROM Character");
    $charac = mssql_result($Sdaaq2, 0, 0);
    //
    $Sdaaq3 = mssql_query("SELECT count(*) FROM MEMB_INFO");
    $cues= mssql_result($Sdaaq3, 0, 0);

    How do i change it to work with odbc??

    Thanks!!


  2. #2

    Re: MSSQL on Web

    u cant change that on the template, u must use ODBC function in config.ini on mucore to make the website work with ODBC then, why u dont want to use MSSQL ? its faster and better.

  3. #3
    Apprentice lucasabbud is offline
    MemberRank
    Jun 2011 Join Date
    20Posts

    Re: MSSQL on Web

    Quote Originally Posted by KarLi View Post
    u cant change that on the template, u must use ODBC function in config.ini on mucore to make the website work with ODBC then, why u dont want to use MSSQL ? its faster and better.
    I've SQL Server 2008 R2 Express version, does not have SQL Agent to run job.
    How do I run it with mssql?

  4. #4

    Re: MSSQL on Web

    Maybe u will have to install other SQL Version


    Sent from my iPhone using Tapatalk

  5. #5
    Put Community First fallenfate is offline
    MemberRank
    Oct 2014 Join Date
    Arad DomanLocation
    1,108Posts

    Re: MSSQL on Web

    For 2008R2 you can use PHP sqlsrv() drivers and change mssql_query to sqlsrv_query, etc. But you need to download the drivers first.

    Sqlsrv drivers download - https://www.microsoft.com/en-au/down....aspx?id=20098

    You need to add them to your php.ini in order for them to work and then reboot Apache.



Advertisement