Jump to content

Recommended Posts

Hello,

 

We've been given an assignment for school to write a program in PHP with the help of a MySQL DB. We would like to hear how you would approach this.

 

The use of this program is to check if a teacher is absent. If a teacher is absent the program should be able to check if there's a teacher to give substitution lesson. If there isn't a substitute available, the program should check for a teacher who's able to keep an eye on the students.

 

We would like to know what DB-model you would use to realise.

 

The DB already contains this data:

 

- Data teachers

- Data Classes

- Course Schedule

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/143456-database-model-help-wanted/
Share on other sites

That should be all you need,

 

teacher

 

name and a unique id for each teacher (more details if needed).

 

classses

 

name of class and a unique id for each (more details if needed).

 

schedule

 

id of the teacher, id of the class, unique id, start time, finish time (more details if needed).

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.