Skip to content

Tag: php

MySQL TIMEDIFF Less than an hour, invalid time

I have a function in MySQL that will select the time someone clocked in, and select the time someone clocked out and link them together. It will calculate how many hours that person has been on the clock in total between two provided dates. I then created another function that selects the break events and sub…