1
I’m having a problem adding time to a field in mysql. When using the function
date_add(Arrival, interval ". $item[6]." minute)...
ADDTIME(Arrival,". $item[6].")...
Both in a given circumstance, return the value of '25:00:00' in which it should return '01:00:00'. mysql has another method for calculating time ?
What is the value you are receiving in Arrival and what value is passing from
$item[6]
?– Vinícius Lima
UPDATE trip SET Exit = ADDTIME(Arrival, '01:30:00') Where id = 4518 Arrival 23:30:00 Exit 25:00:00 Time 90
– welliton