Jump to content

Time Clock Question


savagenoob

Recommended Posts

I have some code that clocks people in and out, then a report that calculates thes time between clocks in and out and outputs the result. How I currently do this is everyone that every clock out I calculate the minutes since last clock in and input to database. Then when the report is pulled I just do a SUM() of that row and voila, I get total minutes clocked in... BUT, I need to add a function that allows the admin to add a clock in/out just in case an employee messes up and doesnt clock in/out. The problem I am having is how to calculate the minutes without automatically calculating the minutes when they clock out, since I will be inputing user generated timestamps this no longer will work... any PHP genius know of a way to effectively do this?

Link to comment
https://forums.phpfreaks.com/topic/159814-time-clock-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.