Re: [PHP] How many Mondays in a month?

This is a discussion on Re: [PHP] How many Mondays in a month? within the PHP General forums, part of the PHP Programming Forums category; * Thus wrote Phil Dowson (pj_dowson@hotmail.com): > Hi, > > I have posted a similar question in php.db, ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-29-2003
Curt Zirzow
 
Posts: n/a
Default Re: [PHP] How many Mondays in a month?

* Thus wrote Phil Dowson (pj_dowson@hotmail.com):
> Hi,
>
> I have posted a similar question in php.db, but I was wondering if someone
> could help out with a non-db issue. I am trying to display statistics of
> visitors to my web site, and what I would like to do is show the average
> number of visitors that have visited the site in a given month for a certain
> day e.g..:
>
> Stats for www.mysite.com for 09/2003
>
> Monday - 15 average - 65 total
> Tuesday - 16 average - 66 total
> Wednesday - 14 average - 65 total
> Thursday - 13 average - 63 total
> Friday - 15 average - 65 total
> Saturday - 5 average - 25 total
> Sunday - 6 average - 28 total


Still sort of a db question:

select dayofweek(datefield) as dayindex,
count(*) total,
from stats group by dayindex;



Curt
--
"I used to think I was indecisive, but now I'm not so sure."
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:02 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0