How do you respond to php queries?
We need a section on the website that will be responsible for the reservation of the football field for one hour.
I want to make a list of available time (e.g. 12-00,13-00,14-00...) When a visitor chooses a certain time, it must be removed from the list and returned only after the time has expired. ♪ ♪
For example, I chose 13-00 (now my list 12-00, 14-00), i.e. 13-00 remote from the list, and it should only appear when it comes to 14-00.
Please help me with the code, I don't know how to put the base in time.
You need to use the cron. The user selects time, for example, 1:00, this time inscribed in the OBD system, on the page, only the time not occupied. Next, the cricket checks the OBD and returns the time taken, i.e., at 2 p.m., the crypt starts and checks out the time of 1 p.m. if so, makes this time available if we don't stop the crypt.