function crimemaketime($until){
$now = time();
$difference = $until - $now;
$days = floor($difference/86400);
$difference = $difference - ($days*86400);
$hours = floor($difference/3600);
$difference = $difference - ($hours*3600);
$minutes = floor($difference/60);
$difference = $difference - ($minutes*60);
$seconds = $difference;
$output = "$minutes Minutes and $seconds Seconds";
return $output;
}
Hi, im looking to set and interval so that no refreshing is need for my timers.
This i have above works fine for my output, but im unable to get it to work with setinterval.
ive searched the internet for a good few hours and nothing has seemed to work or maybe im doing something wrong.
Any help is appreciated, many thanks.