I want to include divs for promotions, adverts, random site content and so on. The method I'd thought of is this: include them using random numbers. So I'd eventually want to generate something like:
where the 1 could be between two set numbers, randomly chosen on page load. I understand how to generate a random number (i.e.
but I don't know the syntax to have that happen inside the include.
Any help would be greatly appreciated.
Thanks
Code:
include("promo-column/promo-1.php")
Code:
echo 'whatever-', rand(1, 5);
Any help would be greatly appreciated.
Thanks
Comment