Simple Calendar with People Assigned to Specific Days

Hello,

I’m quite new with PHP, but have some experience with other coding languages.

I’m trying to set up a very simple PHP calendar that pulls a value (person’s name) out of an XML file, and assigns it to a specific date.

Something that is bothering me is: how do I make sure that when the actual date changes, the names aren’t shifted? I want “John” to stay on “October 5th” even when today is September 25th, or October 1st, if that makes sense.

I’m really having issues getting started, since I’m not familiar with much PHP. Hopefully one of you can point me in the right direction on how to get started, here.

Thanks!

Hi Shane,

Your question is too vague can you be more specific?

From my understanding, that means you have a page with a dropdown list of peoples names(from xml) and once you select a date, that persons name will appear in the calendar? Am i understanding you right? So this calendar… is it like a table? So what if todays date is September 25th? Why do you expect to happen that can change John to a different date?

Either way, i’m assuming that you want John to stay on the same date regardless of when you run your php calendar file… What i would suggest it that you write on the xml file an attribute called date and set the value if you did set a date for that particular person. So your code for the calendar would also read from the xml and IF the date attribute is set, it should use that date value and set the person’s name there based on the date. Does that make sense to you?

Regards,
dveloper.dex2908

Sponsor our Newsletter | Privacy Policy | Terms of Service