Menu

#1 Problem with sample_shows_page_005.php

open
nobody
None
5
2005-01-02
2005-01-02
JoeJack45
No

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 :)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB