/ Published in: PHP
You have banners on your page for advertising? Then you have to randomize the order to be fair.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
0 => "<p>Fill with your html for the first banner</p>", 1 => "<p>Fill with your html for the 2nd banner</p>", 2 => "<p>Fill with your html for the 3rd banner</p>" ); // Don´t touch // Print insertet banner-HTML foreach($arr as $banner => $value) { print $value; } // Thats it!
URL: http://www.shopbetreiber-blog.de