Please Help

Results 1 to 4 of 4
  1. #1
    Valued Member polat alemdar is offline
    MemberRank
    Jun 2011 Join Date
    106Posts

    Please Help

    Any body know PHP
    i want to add most online today (max players joined the server today) to my site can anybody help me with that please answer
    like freestyle website

    thank you
    ;)
    Last edited by polat alemdar; 30-05-13 at 11:41 AM.


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

    Re: Please Help

    With the mssql_* functions:
    PHP Code:
    $row mssql_fetch_assoc(mssql_query("SELECT MAX(PlayerCount) AS PlayerCount FROM ServerLog WHERE (Time > '".date("Y-m-d")."')"));
    echo 
    $row['PlayerCount']; 

  3. #3
    Valued Member polat alemdar is offline
    MemberRank
    Jun 2011 Join Date
    106Posts

    Re: Please Help

    Quote Originally Posted by SuperWaffle View Post
    With the mssql_* functions:
    PHP Code:
    $row mssql_fetch_assoc(mssql_query("SELECT MAX(PlayerCount) AS PlayerCount FROM ServerLog WHERE (Time > '".date("Y-m-d")."')"));
    echo 
    $row['PlayerCount']; 


    thank you for helping but i have error when i add it to my website, so can u send it again with full php source i mean with <div> and all

    and the error is:
    Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for '3.0/DST' instead in C:\AppServ\www\index.php on line 345
    Last edited by polat alemdar; 30-05-13 at 09:54 PM.

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



Advertisement