(1) for($day = 1; $day < 32; $day++){
(2) if($day = $system_day){
(3) echo "match!";
(4) }
.
.
.
Easy enough. One of those things the programmer may not spot, but a casual
observer might. In line #2, you have a single =. A comparative = is a double
equal (==). The line should read "if($day == $system_day){". A single equal
will assign the value; a double equal will compare the two.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

