RE: [PHP-DB] It counts everything not a specific day..

From: Date: Thu, 24 Oct 2002 09:29:19 +0000
Subject: RE: [PHP-DB] It counts everything not a specific day..
Groups: php.db 
Request: Send a blank email to php-db+get-22652@lists.php.net to get a copy of this message
> OK, > > Looks like there are two options.... > > I can either convert the unix timestamp colomn to a mysql > time one *OR* > someone can tell me how to use unix timestamps in this query... > Try something like this: SELECT CONCAT(extract(year FROM FROM_UNIXTIME(time)), extract(month FROM FROM_UNIXTIME(time))) MAX(COUNT(*)) as max_monthly_views, time FROM tececo_stats group by CONCAT(extract(year FROM FROM_UNIXTIME(time)), extract(month FROM FROM_UNIXTIME(time))) Regards Joakim

« previous php.db (#22652) next »