/ Published in: PHP
You have banners on your page for advertising? Then you have to randomize the order to be fair.
- <?$arr = array(
- 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!
CommentsSubscribe to comments
You need to login to post a comment.