Sorry, I'm not great at trying to get my thoughts onto post!
Ok, I'm using iReport to create the calendar, so I'm trying to figure out to do this within MySQL.
The data in the 'calendar_event' table contains all the information I need about the different events, and within that table is a column called 'eventname'. There is also a column within the same table called 'event_start_date', which contains the date of the event.
So, different events take place on different days. What I would like is to have 7 different fields for each day of the week so that they contain only the events that are taking place on that day.
This is where the 'WHERE' comes in. I use 'WHERE' to limit the field to choosing only an event from a specific day. All the data comes FROM the one table, 'calendar_event', and one column within that table, 'eventname', and the WHERE clause gets its info from 'event_start_date'.
Something like this, with correct syntax though

-
SELECT DATE_FORMAT(event_start_date,'%Y-%m-%d') AS date,
eventname AS Monday WHERE event_start_date BETWEEN '2011-02-07' AND '2011-02-08',
eventname AS Tuesday WHERE event_start_date BETWEEN '2011-02-08' AND '2011-02-09',
eventname AS Wednesday WHERE event_start_date BETWEEN '2011-02-09' AND '2011-02-10,
eventname AS Thursday WHERE event_start_date BETWEEN '2011-02-010' AND '2011-02-11',
eventname AS Friday WHERE event_start_date BETWEEN '2011-02-11' AND '2011-02-12',
eventname AS Saturday WHERE event_start_date BETWEEN '2011-02-12' AND '2011-02-13',
eventname AS Sunday WHERE event_start_date BETWEEN '2011-02-13' AND '2011-02-14'
FROM arc_calendar_event
That is basically what I'm trying to achieve! Thank you!
