troubleshooting Question

PHP Time slot availability check

Avatar of Dave Fyfe
Dave FyfeFlag for New Zealand asked on
4 Comments1 Solution4468 ViewsLast Modified:

I have a database listing timeslots for particular days, consisting of

I output these to a html table to display, for example,
Time   Status            Slot ID
09:00 Available         1
09:10 Available         2
09:20 Available         3
09:30 Busy                4
09:40 Available         5

Some of my appointment times may be more than the 10 minute slot interval so I need to ability to check if the next time slot is available, so for example, I need to make an appointment for 20 minutes at 09:00 and both SlotID 1 and 2 are available so I can book it and make it busy. However, If I try to book a 20 minute appointment at 09:20 an alert box should appear as only the 1st 10 minutes are available.

Is this possible? May be asking too much can anyone assist?
Beverley Portlock

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros