Code: Select all
$currentFailLength = date('H:i:s', (strtotime(date('H:i:s')) - strtotime($dowrow["LASTFAIL"])));gives 02:53:56
$dowrow["FAILTIME"] is 00:00:04 and its TIME type in Mysql
Code: Select all
$totalFailLength = date('H:i:s', strtotime($dowrow["FAILTIME"]) + strtotime($currentFailLength));
echo $dowrow["FAILTIME"] ."+". $currentFailLength ."=". $totalFailLength;shows 00:00:04+02:53:56=17:25:44
how to i get a proper answer in this example total should be 02:54:56 , right .... ?