PDA

View Full Version : Year not change from 2004 to 2005...


pazz
12-29-2004, 10:43 PM
Hi brian,

I just want to know why escal calendar do not change the year form 2004 to 2005. But the link for year is 2005. Please help me. Thanks. :)

Brian
12-30-2004, 09:45 PM
I'm not quite sure what you mean? Can you give me an example and/or a link to a page where you are experiencing this problem?

pazz
12-30-2004, 10:06 PM
I'm not quite sure what you mean? Can you give me an example and/or a link to a page where you are experiencing this problem?
Hi brian,

Thanks for your reply.The link is www.kbs.gov.my (http://www.kbs.gov.my). When i click the link for next month and year for january 2005, the calendar change to january 2004 again. Why the calendar did not change to january 2005?

Brian
12-31-2004, 08:57 AM
The calendar is functioning as is should. I think you may have another script on the page that uses the same $yr variables as the calendar script (I see a lot of dates on the page) and this other script is resetting that variable back to 2004. If you look at the actual calendar link that you click to view the next month, you'll see that yr=2005. This is what it should be. So there is something else changing this before the calendar script can see it.

You may need to edit your page and add a line at the very to top capture the $yr variable into another unique variable. Then, just before requiring the actual calendar script, change the $yr variable back to the one it was set to at the beginning on your page.

pazz
01-02-2005, 03:20 AM
Hi Brian,

My problem is complete already. Thanks for your advice.