Avatar of jblayney
jblayney
Flag for Canada

asked on 

select distinct month

Hello, simple little mistake.. i am trying to get and display all distinct months.. it is displaying them all as october 2011

SELECT DISTINCT MONTH (blog_date)  AS BlogMonth FROM blog  ORDER BY blog_date DESC LIMIT 12

 echo  date("F Y", strtotime($row_Recordset_getallevents['BlogMonth']));
PHPMySQL Server

Avatar of undefined
Last Comment
jblayney

8/22/2022 - Mon