Need help with my redirecting rotator script
Here's the code:
<?php
$bannerCounter= 1;
$bannerCode[$bannerCounter] = header("Location: xyz1.com" ) ;$bannerCounter++;
$bannerCode[$bannerCounter] = header("Location: xyz2.com" ) ;$bannerCounter++;
$bannerCode[$bannerCounter] = header("Location: http://xyz3.com" ) ;$bannerCounter++;
$bannerCode[$bannerCounter] = header("Location: http://xyz4.com" ) ;$bannerCounter++;
$bannerAdTotals = $bannerCounter - 1;
if ($bannerAdTotals > 1)
{
$bannerPicked = array_rand($bannercode, $bannercounter);
}
else
{
$bannerPicked = 1;
}
$bannerAd = $bannerCode[$bannerPicked];
?> Would be great if some one helps me correct this.
Computer Science student/coder who wants to learn more/out-of-the-box thinker/copywriter available for work during the summer. PM me for anything. :)
Computer Science student/coder who wants to learn more/out-of-the-box thinker/copywriter available for work during the summer. PM me for anything. :)
The 2nd Amendment, 1789 - The Original Homeland Security.
Gun control means never having to say, "I missed you."