Hi thanks to all...
I have 3 variables ;
1 is $date = (dd-mm-yy)
2nd is $time = (H:i)
3rd 1 $today = date('Y-m-d H:i') ;
my question is how to get difference time (in minutes) between $today - $date $time ?
I try this, but not get correct answer :
$time_me = $time ;
$time_me = explode(":",$time_me);
$date_me = $date ;
$date_me = explode("-",$date_me);
$target = mktime($time_me, $time_me, $date_me, $date_me, $date_me) ;
$today = date('Y-m-d H:i') ;
$difference =($today-$target) ;
print $minuts = (int) ($difference/60);
please help me