Struggling with this!
I need a sum of all the diffs in php so here's the source
$du = mysql_query("select SUBTIME(timeto,timefrom) as diff from table");
while($d = mysql_fetch_assoc($du))
{
$total[] = strtotime($d["diff"]);
}
$t = array_sum($total);
echo gmdate("H:i", $t);
Before you say it... I know I should be using PDO or mysqli
Unfortunately I need the solution in PHP