I want to take away two times stored in the format "00:00:00" in a mysql database, i retrieve the times and take them away by using the following

$total = $time1 - $time2 ;

when i echo the total it is a whole number of the hours.. and does not take the minutes into account, anyone have an idea of how to get an exact answer to 2decimal places of the subtraction of the two times?


Chat online in real time with MSN Messenger http://messenger.msn.co.uk

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to