我有一个类似于mysql的表,其中包含以下行:我想要获得天数、独立访问量和总访问量/天。(occurance_date) as day FROM statistics WHERE event_type = 'visit' 获得独特的访问量COUNT(DISTINCT(ipaddress)) as unique_visits FROM s
我使用这段代码来记录访问量,每次页面加载时都会插入两行,一行是唯一的,一行不是唯一的,这是怎么回事?$check = mysql_query("SELECT ip FROM visits WHERE ip = '{$_SERVER['REMOTE_ADDR']}'");if ($num< 1){
mysql_query("INSERT INTO visits VALUES('&