diff calculation of time elements in a repated group

bea

Active Member
Hey ;)
Hope everyone is fine and could enjoy the quiet christmas days.

I have an issue with 2 time elements in a repeated group, to get the time diff inside the group.
It works only with ajax, but it doesn't write the calc into database.
PHP:
$date = strtotime ('{tablename_85_repeat___elementname1_raw}');
$date1 = strtotime ('{tablename_85_repeat___elementname2_raw}');
$diff = ($date1 - $date);
$minutes = ($diff/60);
return $minutes;

I would appreciate any help. Thank you!
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top