Re: Math problems (No not high school math!)

From: Date: Thu, 25 Sep 2008 15:09:33 +0000
Subject: Re: Math problems (No not high school math!)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-280920@lists.php.net to get a copy of this message
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

« previous php.general (#280920) next »