View Single Post
Old 06-28-2004, 11:04 AM   #4 (permalink)
hatchet
v7n Mentor
 
hatchet's Avatar
 
Join Date: 10-11-03
Posts: 1,137
iTrader: 0 / 0%
Latest Blog:
None

hatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nice
while(count($adarray) < 5) {
$adnum=rand(1,15);
array_push($adarray, $adnum);
array_unique($adarray);
} return $adarray;
This would be called at the very top of each page
Then you would call each ad by the following..
<?php include 'ad' . $adarray[0] . '.php' ?>
<?php include 'ad' . $adarray[1] . '.php' ?>
etc..
I haven't tested this or the logic but it seems ok.
hatchet is offline   Reply With Quote