\n"; for($i=0;$i<=23;$i++) { $time=sprintf("12/%d/2014 0:00",($i+1)); if (time() > strtotime($time)) { $html.="
\n"; $target=$GLOBALS['links'][$i].".html"; } else { $html.="
\n"; $target="#"; } $html.=sprintf(" %d\n",$target,($i+1)); $html.="
\n"; } $html.="
\n"; echo $html; ?>