php - MySQL - building a working-schedule / how to fill DB? -


I make a database for a group of employees (about 90) to manage my work program more easily Suppose I have 3 tables which all like a lot like this:

Date / Agent 1 / Agent 2 / Agent 3 / etc.
01.01.2015 / Max / Gati / Henz / Etc.

For one of the tables, "work begins at 8:00, ends at noon", "work starts at 2:00 pm, ends at 9 pm" for the second. The third is for "work begins at 3:00, ends at 9 o'clock."

I can fill the database and manage it by me, but this will not be a better improvement.

Is there a way to fill those tables with random names from our "Employee" table, while the employee is also checking the preference (for example, Git does not like to work on Thursday afternoon is)?

I appreciate every single point.

Yes.

  1. Find out how many spots to fill.
  2. Create a function to fill an array randomly with the number of employees
    • Make sure that your work checks for preference and that an employee is notified Connects in
    • Use that array to create a query for your database.
    • Run the query.

For information about how to do these things, please choose php.net as well as your search engine.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -