ok i am making this articles and news posts for my site... for views i 'v been using my sql. increase the pageviews value every time the page loads...
but being a news system it has to show the popular posts on the homepage. I can do that the one with highest page views.. easy.. but it also has to be 'popular today' or 'last week'.. and some old stories can have more page views that the new ones...
so my question is how to take the pageviews for a specific time period... can also be in hours days weeks or months .... i know php could help..
i can code my self but here i dont know what to code..! like what has to be the frame or the basic idea/functioning for this.. plz help
Thanks :)