ok, i need help on how i could code this in php.
i have a mysql table that stores the user's timestamp when he clicked on the link and it resets every 24 hours with a new timestamp and the hits also will reset.
here's an example table:
--------------------------------
USER TABLE
--------------------------------
user | timestamp | hits
-------------------------------------------------
user1 1261946304 1
user2 1261944605 2
user3 1261944530 2
user4 1261944470 1
user5 1261944067 2
im not sure how to approach this, but how could i get the total average number for the hits in the last 24 hours only?