I would like to create a query that will list the number of users within a specific membergroup, and display the count of users that registered on each day. (And the list grows with each new day)
For instance:
25July2011 - 138 26July2011 - 41 28July2011 - 35
What I have so far is this (it shows the dates (not grouping yet, and shows every date) :
{exp:query sql="SELECT join_date FROM exp_members WHERE group_id = '5'"}{join_date format="%d %M %Y"} {/exp:query}
Thanks!
Sorry about the delay in response, this should help:
{exp:query sql="SELECT join_date, COUNT(*) as signup_count FROM exp_members GROUP BY FROM_UNIXTIME(join_date,'%d%m%y') ORDER BY join_date"}
{join_date format="%d %F %Y"} - {signup_count}
{/exp:query}Let me know how it goes!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.