![]() Topic awaiting preservation: Recurring Events in MySQL/PHP Calendar (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
![]() I'm setting up a MySQL based calendar in PHP on a website. I've learned how to do simple things like adding/deleting/editing events, displaying with calc.php, etc. |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
![]() well, one approach is to store each calendar entry with a next and previous entry link - in the reoccuring row that is. |
Nervous Wreck (II) Inmate From: |
![]() Okay, I think I've opted to insert individual entries for multi-day & recurring events. I'm not sure how to do this in MySQL/PHP, though. Can someone give me an example of how I can do this? What would the code look like for this: |
Maniac (V) Inmate From: under the bed |
![]() |
Nervous Wreck (II) Inmate From: |
![]() Okay - the whole thing is too complex. Here is the simple part - I can expand this to work with the whole thing: |
Maniac (V) Inmate From: under the bed |
![]() what value will you store in the 'recurrence' field? |
Bipolar (III) Inmate From: f(x) |
![]() |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() My first instinct on this is that you don't want to recurrance in the same table as the event entry. I'd abastract these out a bit. |
Nervous Wreck (II) Inmate From: |
![]() quote:
quote:
|
Bipolar (III) Inmate From: f(x) |
![]() |
Bipolar (III) Inmate From: f(x) |
![]() Actily my calendar needs more work than I thought... I suggest you look around Google or go here for examples to run off. I'm sorry, I can't give out any source until I release it under the GNU Licence. I do not know when that will be, maybe this year if I'm lucky! |