PHP Get count

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
raphael75
New php-forum User
New php-forum User
Posts: 31
Joined: Fri Apr 06, 2012 9:54 pm

Re: PHP Get count

Post by raphael75 » Mon Mar 31, 2014 10:59 am

something like:

Code: Select all

select
  count(id) as 'total', 
  monthname(date) as 'month'
from
  tablename
group by
  month
order by
  total desc

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 5 guests