Skip to content

Instantly share code, notes, and snippets.

@siffring
Created April 28, 2011 15:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siffring/946604 to your computer and use it in GitHub Desktop.
Save siffring/946604 to your computer and use it in GitHub Desktop.
ExpressionEngine list of new members by month
{!-- Displays the number of new ExpressionEngine members by month --}
{exp:query sql="select count(*) AS total, month(from_unixtime(join_date)) as month, year(from_unixtime(join_date)) as year from exp_members group by year, month order by year DESC, month DESC"}
<br/>{year}-{month}: {total}
{/exp:query}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment