> ******** Problem lines********
>
> if ($mo == 06 and $dy > 01 and $dy < 09) { $wd = "8"; }
> if ($mo == 06 and $dy > 08) { $wd = "9"; }
>
but if I change my date to 06/02 then no matter what I
> try, $wd always gets the value of 9 (it should be 8 on this
> date). It should
> not get the value 9 until the 9th of June.

If the first if is true, so is the second, unless $dy == 8. In this case,
the number is 2, which is greater than 1 and less than both 8 and 9, making
both statements true.

Check your logic.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to