difference between datetimes

Posted on 16th Feb 2014 by admin

($row['totime']-$row['fromtime'])/60

this is giving me 0

example of totime and fromtime are:
2009-12-26 01:10:05 and 2009-12-26 1:03:01

i was thinking that with those values i would end up with something like 7

Other forums