Help with Silly Bit of Code!

3 posts by 2 authors in: Forums > CMS Builder
Last Post: January 25, 2013   (RSS)

Hello, All -

I'm using a tiny bit of code on my latest CMSB website which is designed to show a different graphic on alternating weeks.

$weekNo = strftime('%U');
if ($weekNo%2)
{
 do normal
}
else
{
do alternate

It works fine. The only problem is that the code updates on Sunday - whereas I need it to change on Thursday!


Can anyone help?!

:0)

Perchpole

Greg -

You're a star. It works perfectly. Now everyone will know which colour rubbish bin to put out for collection every week!

:0)

Perch