Problem with php

Results 1 to 4 of 4
  1. #1
    Newbie r00tme is offline
    MemberRank
    Jan 2014 Join Date
    London, UnitedLocation
    16Posts

    Problem with php

    Hello, this php script show on my website top 50 statistic on all crated characters. But I would like to make exeption for the GMs and Admins. So only normal players to be displayed. What should I do with that php or it is something in the SQL database. Thanks for your help in advance.
    <?php
    $query = mssql_query('SELECT TOP 50 * FROM Character ORDER BY Resets DESC, cLevel DESC');
    $i = 0;
    while($row = mssql_fetch_array($query)):
    $char_class = char_class($row['Class']);
    $i++;
    ?>


  2. #2
    Hmm.. huh? MrQU3ST10N is offline
    Grand MasterRank
    Jun 2013 Join Date
    Trojan St. 404Location
    1,109Posts

    Re: Problem with php

    maybe this thread can help you

    LINK

  3. #3
    Grand Master 2009x2014 is offline
    Grand MasterRank
    Dec 2009 Join Date
    2,765Posts

    Re: Problem with php

    mssql meh
    use CtlCode (0 = normal, no banned no gm, unless your gm level is not set in db, then filter by nickname or account id)

    by ctl code
    ->
    $query = mssql_query('SELECT TOP 50 * FROM Character where CtlCode = 0 ORDER BY Resets DESC, cLevel DESC');

  4. #4
    Newbie r00tme is offline
    MemberRank
    Jan 2014 Join Date
    London, UnitedLocation
    16Posts

    Re: Problem with php

    Thanks a lot, for your help guys. I did that change in my php which 4Funer suggest and it's working at 100%. Thanks again.



Advertisement