JS gevorderde |
|
<?
$timeleft = $lastbank - time();
while ($timeleft >= 0)
{
$tmp = $timeleft;
$h = floor($tmp/3600);
$tmp = $tmp - $h*3600;
$m = floor($tmp/60);
$tmp = $tmp - $m*60;
$s = $tmp;
echo $h.":".$m.":".$s;
$timeleft --;
}
?>
<? $timeleft = $lastbank - time(); while ($timeleft >= 0) { $tmp = $timeleft; $tmp = $tmp - $h*3600; $tmp = $tmp - $m*60; $s = $tmp; $timeleft --; } ?>
zoiets??,
[edit] werkt dit beter, heb het een beetje aangepast |