Hi all
I am building a web calendar; storing events with a title, description, a location, the User locked in etc;
The event has a feature of recurrency and this is where my problem is!
I have 2 tables:
calendar_events
ID - a unique identifier
date - a start date
time - a start time
duration - duration of the event
repeat - a char (Y/N)
access - a char (Private/Public)
title - an event title
description - an event description
user_id - current user
calendar_events_repeat
event_id - the Parent Event ID
type - daily, weekly or yearly recurrence
end - end date - if any
frequency - occuring every x days
days - char that stores on which day the event is happening on recurrence usually holds something like: yynnnnn where this states that it recurs every sunday and monday
Now what i really need from you guys is a query which takes a Date and user ID and returns the events for that particular date!
Ok its seems quite difficult but i'm quite sure that you can come up with something simpler than my idea!!
I know i've posted the same question on another forum but no one answered so i'm hoping it would be more successful here! thanks and sorry!
Tahnks
Nick
I am building a web calendar; storing events with a title, description, a location, the User locked in etc;
The event has a feature of recurrency and this is where my problem is!
I have 2 tables:
calendar_events
ID - a unique identifier
date - a start date
time - a start time
duration - duration of the event
repeat - a char (Y/N)
access - a char (Private/Public)
title - an event title
description - an event description
user_id - current user
calendar_events_repeat
event_id - the Parent Event ID
type - daily, weekly or yearly recurrence
end - end date - if any
frequency - occuring every x days
days - char that stores on which day the event is happening on recurrence usually holds something like: yynnnnn where this states that it recurs every sunday and monday
Now what i really need from you guys is a query which takes a Date and user ID and returns the events for that particular date!
Ok its seems quite difficult but i'm quite sure that you can come up with something simpler than my idea!!
I know i've posted the same question on another forum but no one answered so i'm hoping it would be more successful here! thanks and sorry!
Tahnks
Nick