I have done some research and have found an example of a banner rotator (that I'm presently using) - as you can see here: http://www.clickteesside.com/
What I'm wanting to do is like the imgsrc, links and message of the rotator to a database value, so that there are more or less images in rotation based on the amount of records in the database.
I have already set up a table (click.click_banners):
- bannerVisible (int)
- bannerImagePath (varchar)
- bannerLink (varchar)
- bannerMsg (varchar)
And the original code for the banner is:
I'm just wanting it so that they are uploadable (which I've managed to sort out, so isn't an issue in this matter), and then editable as to whether they're visible and the message/link changeable from the CMS.