Hi all,
I need to create a timetable in php.

Example: we need to create timetable for two classes as LKG-A and LKG-B. There are 5 periods and 5 teachers for both the classes.
Suppose if we choose a teacher for first period in LKG-A that teacher should not be visible for LKG-B at the same time. we should create a
drop down box for each column to see the teachers list. Please help me to do this.

Recommended Answers

All 2 Replies

You should use javascript (or better jquery) to read which teacher was selected in the first select element and remove of disable that option in the second select element. The javascript (jquery) code could be controlled by php. The data should be pulled ftom the database.

You will get better answers if you provide the code and data structures you have so far but in general:

You should use javascript (or better jquery) to read which teacher was selected in the first select element and remove of disable that option in the second select element. The javascript (jquery) code could be controlled by php. The data should be pulled from the database.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.