javascript / ajax,php和mysql中的日历?

时间:2022-12-05 13:54:07

I need to create a calendar which will allow people to view appointments and edit these. Am aware there are many out there put I have to create my own and it has to be my own code, so anything like jQuery is out of the question. I have studied Google Calendar and although I don't want it as advanced as this something similar should do.

我需要创建一个日历,允许人们查看约会并编辑这些约会。我知道有很多我需要创建自己的,它必须是我自己的代码,所以像jQuery这样的东西是不可能的。我已经研究过谷歌日历,虽然我不希望它像先进,因此类似的东西应该做。

I have a basic idea how to do it, but I don't quite know how to get the correct days in the month etc? I was thinking about an array in php, I don't know if the php date() function would help me here?

我有一个基本的想法,如何做到这一点,但我不知道如何在一个月内获得正确的日子等?我在思考php中的数组,我不知道php date()函数是否会帮助我?

Has anyone created there own or have any advice?

有没有人在那里创建或有任何建议?

Thanks

谢谢

1 个解决方案

#1


1  

There is a function in PHP to get the number of days in a certain month: cal_days_in_month()

PHP中有一个函数可以获取某个月的天数:cal_days_in_month()

#1


1  

There is a function in PHP to get the number of days in a certain month: cal_days_in_month()

PHP中有一个函数可以获取某个月的天数:cal_days_in_month()