search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How to limit appointment time only to 30 minutes?

Related article: HTML5 Doctor Appointment Scheduling (JavaScript/PHP/MySQL)
Asked by Anonymous
2 years ago.

Here default appointment time is 1 hour. But I want to have each appointment only 30 minutes. How do I do that? And there is one line saying in actual product we use User_ID instead of Session_ID. Does that mean I need to replace all session_id code with user_id (in SELECT statements and other assignment operations)? Thanks in advance.

Answer posted by Dan Letecky [DayPilot]
2 years ago.

1. The default appointment slot duration is set in "backend_create.php" file using $slot_duration variable:

$slot_duration = 60;

You can change it as needed.

2. Yes, you should change sesion_id to user_id. This demo project doesn't implement user authentication. But the logic requires user identity - so it uses session id to simulate it.

Comment posted by Anonymous
2 years ago.

Thank you, for your reply.

This question is more than 6 months old and has been closed. Please create a new question if you have anything to add.