Ok... here's my code (simplified so you only see the part where I think the problem is supposedly occuring)....
<?PHP
$today = getdate();
GLOBAL $totalDaysBefore;
GLOBAL $currentYear = $today['year'];
function countDaysBefore(){
while ($countYear < $currentYear){
$totalDaysBefore = $totalDaysBefore + 365;
$countYear++;
}
}
?>
....
<?PHP
print "$totalDaysBefore";
?>
....
can anyone tell me why the value of this variable never gets set ($totalDaysBefore).
Nothing shows up, unless I hard code a value into it.