I'm working on an events page where users can create events and their followers can view the event on their events page.
What I would like to do is select all the events from the table where the event date is within this year (2011), so if the date is 2011-03-30
it will display in the March header, but if it's 2012-03-30
it wont display at all until next year.
So overall, I would like all events to display under headers, e.g. January, February, March.
My table structure is thus:
id int(11) event_creator_user_id int(11) event_creator_user_username varchar(255) event_creator_user_first_name varchar(255) event_creator_user_last_name varchar(255) event_name varchar(255) event_date date event_time time event_brief_location varchar(255) event_location_street varchar(255) event_location_town varchar(255) event_location_post_code varchar(255) event_description text event_create_date datetime type enum('a','b')