if anyone caould help me with this that would be great im sure it is something simple but for the life of me i cant find out how to do this i have two timestamps and i want to add them together ($timestamp1 + $timestamp2) i have the first part figured out but i cant get the result i want so far i have this
$flight_time = strtotime($flight_time_1)+strtotime($flight_time_2)+strtotime($flight_time_3)+strtotime($flight_time_4)+strtotime($flight_time_5)+strtotime($flight_time_6)+strtotime($flight_time_7)+strtotime($flight_time_8)+strtotime($flight_time_9)+strtotime($flight_time_10);
$flight_time = date("H:i:s", $flight_time);
and that gives me the time 16:20:00 which is perfect the second code i have is this
$sqlcow = "SELECT system_flight FROM uav_checks WHERE uav_id = '$registration'";
$result1cow=mysql_query($sqlcow);
while ($arow = mysql_fetch_array($result1cow)){
$system_flight2 = $arow['system_flight'];
}
and with this code i get this 28:07:00 which is perfect
what i need is this 16:20:00 + 28:07:00
however when i try to add them together in every way i know possible it wont work so i am stumped please can anyone help me
thank you