01252007 1505 GMT-6
I have two arrays that have Spring and Fall specific dates.
They do exactly what I want but, when I put them on the same page, the
first array, Spring months, prints out then the second array, Fall
months, prints out and then the first array prints out again. Its not
supposed to do that at all. However, I dont see what is causing the
second printing of the first array.
Here are the two arrays.
wade
foreach($SpringMonths as $month){
$daysinmonth = date("t", $month);
for($i=1; $i<=$daysinmonth; $i++){
$GameDay = date("m-D-d-Y", mktime(0,0,0,
$month,$i,$CurrentYear));
if(eregi('Sun', $GameDay)){
if($GameDay >= $SpringStartDate && $GameDay <=
$SpringEndDate){
if($GameDay === $SpringBreak ){
} else {
$PlayDate[] = $GameDay;
}
}
}
}
}
foreach($FallMonths as $month){
$daysinmonth = date("t", $month);
for($i=1; $i<=$daysinmonth; $i++){
$GameDay = date("m-D-d-Y", mktime(0,0,0, $month,$i,
$CurrentYear));
if(eregi('Sun', $GameDay)){
if($GameDay >= $FallStartDate && $GameDay <=
$FallEndDate){
if($GameDay === $FallBreak ){
} else {
$PlayDate[] = $GameDay;
}
}
}
}
}