Hi need a simple script that allow me to relevate the hours worked of two peaple.
I have a web interface, when a person start to work he digits his code (es number 1 or 2) in a text box.
The code digited must generate a function NOW in a datetime table of a mysql database.
It is the same for the enter an the exit.
At the last each person has the own table datetime with his time of start work end end work.
Another php page must generate a report of the hours worked in the time period specified in a text box.
The script must calcolate that if the user digit his code from 7,00-9,00 or 15,30 - 17,00 he is starting to work, if he digit his code from 13,00-14,30 or 19,30-21,00 he is ending work. When the script wiew the total of the hours worked, if a person has not inserts an enter or an exit, by default the time for a NON enter must be 7,30 or 16,00 and the time for a NON exit must be 13,30 or 20,00, depending on what enter or exit lack, am or pm.
This is a very simple script, that an expert programmer made in 1-2 hours.
For any question, please, contact me.