Problem with sample_shows_page_005.php
Status: Beta
Brought to you by:
wheatbread
the three if statements:
if (($the_year > $cur_year)) {
.
.
.
}
if (($the_month > $cur_month) and ($the_year =
$cur_year)) {
.
.
.
}
if (($the_month = $cur_month) and ($the_day >=
$cur_day) and ($the_year = $cur_year)) {
.
.
.
}
need to be changed to:
if (($the_year > $cur_year)) {
.
.
.
}
if (($the_month > $cur_month) and ($the_year ==
$cur_year)) {
.
.
.
}
if (($the_month == $cur_month) and ($the_day
>= $cur_day) and ($the_year == $cur_year)) {
.
.
.
}
Just a mistake with assignment statements instead of
comparison. took a new year for it to crop up I guess :)