need a toplist script in which stats will be of last 24hours...???

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    need a toplist script in which stats will be of last 24hours...???

    hey,
    any1 have or can make a toplist script i which in/out stats will be of last 24hours...??? m readu=y 2 pay.reply here immediatly
    Last edited by slowy; 05.12.10, 15:51.

    http://WapTops.com- Get Real High Traffic
    http://WapFun.info-Fun 4 Wap

    #2
    nobody is here to make it

    http://WapTops.com- Get Real High Traffic
    http://WapFun.info-Fun 4 Wap

    Comment


      #3
      Simple to do man

      store all the stats incoming/outgoing with the current time, so basically you

      call everything from the database that has a time greater than or equal to 24 hours ago.

      PHP Code:
      $time time();

      $ago $time - (60 60) * 24;

      $get mysql_query("SELECT * FROM `statstable` WHERE requestTime >='".$ago."'");

      while(
      $stats=mysql_fetch_object($get))
      {
        echo 
      $stat->incomeclicks;
      //etc

      Comment


        #4
        m trying to add the time of in/out hits but its not working
        see dis
        PHP Code:
        $date=Date("H:i:s");
         
        $insert=mysql_query("INSERT INTO in_out SET ip='".$_SERVER['REMOTE_ADDR']."', sid='".$_POST["sid"]."', time='".$date."'); 

        http://WapTops.com- Get Real High Traffic
        http://WapFun.info-Fun 4 Wap

        Comment


          #5
          Originally posted by slowy View Post
          m trying to add the time of in/out hits but its not working
          see dis
          PHP Code:
          $date=Date("H:i:s");
           
          $insert=mysql_query("INSERT INTO in_out SET ip='".$_SERVER['REMOTE_ADDR']."', sid='".$_POST["sid"]."', time='".$date."'); 
          your missing a " at the end ");

          Comment

          Working...
          X