Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
|
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 13th, 2006, 07:07 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default Time Calculation

Hi friends,
i want to calculate totlal time using php code
12:25:10 + 05:15:12 + 02:45:23 + .........



surendran
(Anything is Possible)
__________________
surendran
(Anything is Possible)
http://www.suren.info
http://ssuren.spaces.msn.com
 
Old June 24th, 2006, 01:38 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 128
Thanks: 0
Thanked 1 Time in 1 Post
Default

surendran,

PHP time functions are too overwhelming to me.
Since this is a MySQL forum, I suggest to just
calculate your time total by MySQL select statement and format.
Like this:

SELECT SUM(DATE_FORMAT(fieldname, '%H:%i:%s')) as alias;

regards,
John M






Similar Threads
Thread Thread Starter Forum Replies Last Post
time calculation hozyali Beginning PHP 2 April 9th, 2007 08:02 AM
Time Difference Calculation deepak_7k Access 3 November 29th, 2006 08:36 PM
Time calculation rdfernandez Access VBA 6 March 24th, 2005 11:51 AM
client side time calculation in asp.net gmk51080 Javascript 0 November 30th, 2004 04:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.