This seems simple enough, but its been driving me crazy trying to find a simple solution to this. I dont know if javascript or php would be the best way of going about this, but here's what Im trying to do: Rotate whatever on each page load. Could be a text link, a linked image (banner) or just plain text. I dont want it to rotate at random, but rather rotate in a loop. i.e. show variable 1, then 2, 3, 4, 1, 2, 3, 4, etc. I dont want it to pull at random because I want each variable to display evenly and I dont want it to rotate automatically after x seconds, but rather on each page load. Does anyone know of a simple script for doing this?????? Thanks.
Don't use javascript for this. PHP is fine. I know you said you didn't want random, but that is the absolute easiest way to do it. Also, assuming you get enough page loads, it should all even out over time.
see here is your problem. To have in a loop, a variable will used, and this variable will be different between different people logging on to the site. to do that you need a database that differentiates people based on their ips, which is a lot harder, than a random script
yup you need database for doing this maybe database with "ads" table, "ip" table and "log" table so... you can log ads with ip on your "log" table
Technically you don't need a database for this. You could just use a flat file, for instance. But either way, it's more complicated than just randomizing things.