i\'m trying to make a loop that will output this:
08:00
08:15
08:30
08:45
09:00
09:15
09:30
09:45
i need it to go from 08:00 to 17:00
it can also be done with the range function
<?php
date_default_timezone_set("Europe/London");
$range=range(strtotime("08:00"),strtotime("17:00"),15*60);
foreach($range as $time){
echo date("H:i",$time)."\n";
}
?>
so you don't have a loop, it just makes an array for you (my loop is just to print it out whilst formatting it)
echo_datelist(17, 0, $day, $month, $year);
Move that line to just after the outermost for
-loop.