Jason Pruim wrote:
So I'm trying to figure out how to do a little math in php to add up
the number of hours that people have worked (Still on the timecard for
anyone following along at home)
I have it inserting time in and timeout as timestamps into a MySQL
database, from there, I use a while loop to display the total hours
for the day which works perfectly, now though, they want it to total
for the week...
Consider adding a column for the total hours and calculate it when
saving the record.
It should make everything that follows easier.
Stephen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php