advance click counter mysql or flat file

Posted by jay on Stack Overflow See other posts from Stack Overflow or by jay
Published on 2010-06-14T01:56:54Z Indexed on 2010/06/14 2:02 UTC
Read the original article Hit count: 240

Filed under:
|
|
|

Hi,

First of all Thank You for looking.

whats the best method for make an advance click counter (eg. order by views [today] | [yesterday] [this week] [last week] [this month] [last month] [all time] ).

Is it better to use a flat file or mysql?.

This is the MYSQL Structure i came up with.

id (type: int(11)) link_id (type: int(11)) date (type: date) counter (type: int(11))

please can you advice me on whats the most effective way of doing this.

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql