If I were to put this part
<br />// This section can be called via an include if you wish <br /><br />$image_html = array();<br /><br />// Insert the HTML code below for each image or banner in the pool (don't forget the \ before the ")<br />// You can also add individual ALT and TITLE tags if you wish<br /><br />$image_html[0] = "<a href=\"http://www.example1.com\"><img src=\"images/1.gif\" border=\"0\"></a>";<br />$image_html[1] = "<a href=\"http://www.example2.com\"><img src=\"images/2.jpg\" border=\"0\"></a>";<br />$image_html[2] = "<a href=\"http://www.example3.com\"><img src=\"images/3.png\" border=\"0\"></a>";<br />$image_html[3] = "<a href=\"http://www.example4.com\"><img src=\"images/4.gif\" border=\"0\"></a>";<br />$image_html[4] = "<a href=\"http://www.example5.com\"><img src=\"images/5.jpg\" border=\"0\"></a>";<br />$image_html[5] = "<a href=\"http://www.example6.com\"><img src=\"images/6.png\" border=\"0\"></a>";<br /><br />// Configure the number of unique images or banners to be displayed on the page<br />// It can be any number from 0-6 in the example given<br /><br />$number_of_images = 3; // <-- Configure<br /><br />$random = array_rand($image_html, $number_of_images);<br />?> <br />
into a file named banner.inc.php
where would I put the following line of code?Or am I going about this wrong?
require ("includes/banner.inc.php");
This I have placed in my Generic Header
<center><br /><br /><?php echo $image_html[$random[0]]; ?><br /><?php echo $image_html[$random[1]]; ?><br /><?php echo $image_html[$random[2]]; ?><br /><?php echo $image_html[$random[3]]; ?><br /><?php echo $image_html[$random[4]]; ?><br /><?php echo $image_html[$random[5]]; ?><br /></center>