I'm working on www.snazzles.net and it has a dynamic rotator jpeg banner file which I link to using...
In the rotator file, I have a MySQL/PHP recordset that gets the name of the images from our database and lists them at random, so that each time some one visits the homepage, they will see a different image, thus adding variety to the homepage.
so the recordset has a script like this...
I have a 'repeat region' to then list the banners in my html.
Each time I upload, Sellerdeck retrieves the include file and the images are sorted at random, then uploads it. The problem occurs when I access the website - the banner is static.
I was hoping that the home page would retrieve the rotator.php file each time a web user visited the home page and then retrieves the images at random. But this only happens each time I upload (sellerdeck retrieves the banners PHP coding, rasterises it and embeds it as static HTML).
Is there a way taht I can get it to just link to the rotator.php so that when I upload new banners via our CMS, then the home page will retrieve the new banners 'on the fly' without having to upload from Sellerdeck.
Any help would be appreciated.
Thanks in advance.
Code:
<actinic:block php="true"> $a = file_get_contents("http://www.snazzles.net/rotator.php"); echo ($a); </actinic:block>
so the recordset has a script like this...
Code:
SELECT * FROM banners WHERE imagetype = 1 ORDER BY RAND()
Each time I upload, Sellerdeck retrieves the include file and the images are sorted at random, then uploads it. The problem occurs when I access the website - the banner is static.
I was hoping that the home page would retrieve the rotator.php file each time a web user visited the home page and then retrieves the images at random. But this only happens each time I upload (sellerdeck retrieves the banners PHP coding, rasterises it and embeds it as static HTML).
Is there a way taht I can get it to just link to the rotator.php so that when I upload new banners via our CMS, then the home page will retrieve the new banners 'on the fly' without having to upload from Sellerdeck.
Any help would be appreciated.
Thanks in advance.
Comment