I have found this code to countdown every 15 minutes and when it reaches 0, it resets back to 15 mins:
<?php
$time = time();
$next = 15 - (floor($time / 60) % 15);
echo ($next);
?>
So the above will output the minute. What I would like to add is the seconds as well?
So the output I'm looking for is
14:57
Then if you refresh the page it carries on counting down including the seconds.
Any help appreciated.
Thanks
Mabs