It is necessary to make an online entry for the site of one dental clinic. I can send data to the database, and how to do it:

  1. To make the selected date and number unavailable to others
  2. For each date, attach a new plate with the time

Closed due to the fact that the question is too general for participants Qwertiy , Sergey , Yura Ivanov , fori1ton , VenZell 6 May '15 at 6:54 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • 6
    Understood nothing. - Oleg
  • You are not mistaken with the tags? Than to work, php? - DemoS
  • one
    Who are these others? - triplustri
  • four
    Becoming a member of the HashCode community - become a member of the Psychic community (s) - Palmervan

1 answer 1

When displaying the form, we do not show or do not let us choose those dates that have already been entered into the database.

Actually, that's the whole answer to the question.

but about point 2 - this is not for us, we do not understand the cups.

  • one
    2nd point is probably the reception hours. Type mark that "session" from 10:00 to 11:00 is busy :) *снимает телепатический шлем* - Alex Kapustin
  • @shurik give a helmet to drive a day;) - Artem
  • Shurik, right! Each date has reception hours. For each day to create a separate database? Or are there other options? And are there any ready-made scripts? - Radik Kamalov