working with dates

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mcog_esteban
Forum Contributor
Posts: 127
Joined: Tue Dec 30, 2003 3:28 pm

working with dates

Post by mcog_esteban »

can someone help with this.
i have a calendar with events,but i want to insert automatic events like this:

every 1st week of every month there's a meeting or every last friday of a month there's a party.

how can i process this events automaticaly?
thanks.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

process them.. how? add them to the event calendar? or bypass the addtion and blindly show the events in the calendar display?

Personally, I'd add them to the calendaring, and thus the database. I'd probably build the "event" table such that I have a way of specifying recurring events. Standard kinda things would be a numeric field and an enum/numeric field that specifys the kind of recurrance it has.. like yearly, monthly, weekly, daily, etc...
mcog_esteban
Forum Contributor
Posts: 127
Joined: Tue Dec 30, 2003 3:28 pm

Post by mcog_esteban »

i would like to create a script that add the events in "background",instead of adding one by one to the calendar.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

my second paragraph talks about just that.
Post Reply