Re: [PHP] IF loop

2007-04-10 Thread Richard Davey
Ron Piggott wrote: $good_Friday = easter_date($current_year)-24*3600*2; $Easter_Sunday = easter_date($current_year)*60*60*24; easter_date() returns a Unix timestamp. In the above code, you are taking this timestamp, then multiplying it by 60, then again by 60, then again by 24. If the Unix t

[PHP] IF loop

2007-04-10 Thread Ron Piggott
Would someone help me tweak the IF statement below? I am trying to assign a value to $seasonal_greeting on Good Friday, Saturday and Easter Sunday. We had added an extra day's worth of seconds to $Easter_Sunday wondering if this is why it didn't work on Easter Sunday. Where I am at today -