Skip to main content

Posts

Showing posts from January, 2015

Sql group by query

$sql = "SELECT *,count(`created_on`) as blogcount FROM `tbl_blog` group by DATE_FORMAT(`created_on`,\'%M %Y\') order by created_on asc";