This banner rotator is a little bit different from others, the banner will change only ones a day. I used the PHP function rand() because I think that MySQL’s “ORDER BY RAND()” and the PHP function array_rand() are only a second choice.
Show random ads without a database
Use this code to rotate multiple banners on some web page. It’s possible to use multiple graphical banners and also some code from Google Adsense.
The following PHP is used to create the banner array, place the code before your HTML code: