Hello out there!
$days = floor($diffDate / 24 / 60 / 60 / 7)$anzahl+1;
Welcher Operator sollte denn zwischen $days = floor($diffDate / 24 / 60 / 60 / 7) und $anzahl stehen?
Hab das Modulo vor $anzahl gesetzt :)
Noch mal das Aktuelle Skript:
<?php
echo error_reporting(E_ALL);
$anzahl = 4;
$newDate = mktime(0,0,0, 8, 1, 2007);
$newtime = time();
$diffDate = ($newDate-$newtime);
$days = floor($diffDate / 24 / 60 / 60 / 7)%$anzahl+1;
echo $days;
?>
&days gibt nun 2039-1 ^^
Grüße
See ya up the road,
Gunnar