Learn how to write a simple PHP script which randomly rotates banners or links on your page. This technique allows you to use any number of area with a random content. Everything is written in a few lines of code, no database, no file system.
Very simple banner rotation. Done in just 4 lines of code. Useful if you need to quickly put somewhere rotating banners without need of statistics. It uses txt files, where the html code for the banner is stored.
This tutorial is intended for the PHP programmer interested in developing a useful and dynamic banner advertisement system using mySQL, PHPLIB, and PHP version 4.0 or higher. You will need a limited knowledge of mySQL including how to create a mySQL table using the mySQL client and must have PHPLIB version 7 operational.