Hello, Please can you assist, I am trying, in essence to creat a rotating banner ad within my site, similar to the DP co-op, showing different ads on a refresh or a new page I have 5 images with corrosponding urls that I want to display, in my data base, but I do not want the same data set to show twice. So i think I want a 1 out of 5 on the first page load then a 1 out of 4 on all the next............ Cany you help?
Take a look at this free ads program http://phpadsnew.com/two/ It works fantastically for me at http://www.raincheck.co.nz Sarah
you could possibly store the ads shown in the session. When an ad is shown, stick it in an array in the session. Then take the array difference between the ads and the ads shown and get the next add from that. Then once all the ads are shown, reset the the session array and start over.