Hi,
I went way back through the threads and could not find this. I know it has been answered before, so I am sorry for asking again, but…
I need a FREE PHP Rotating Banner Script… Can anybody point me the right way?
Thanks,
Doug
Hi,
I went way back through the threads and could not find this. I know it has been answered before, so I am sorry for asking again, but…
I need a FREE PHP Rotating Banner Script… Can anybody point me the right way?
Thanks,
Doug
I strongly recommend you this script: http://www.ledscripts.com/free-php/led-ads.html
php/mysql, very easy to install, with stats (views + clicks)
or this: (no stats)
<?
mt_srand((double)microtime()*100000);
$number = mt_rand(1, 2); // if you want more than 2 banners, change the 2 and add more if statement off course
if($number == 1){
echo"<a href=\\"http://www.url.com\\" target=\\"_blank\\"><img src=\\"http://url.to/banner\\" width=\\"468\\" height=\\"60\\" border=\\"0\\"></a>\
";
}
if($number == 2){
echo"<a href=\\"http://www.url2.com\\" target=\\"_blank\\"><img src=\\"http://url.to/banner2\\" width=\\"468\\" height=\\"60\\" border=\\"0\\"></a>\
";
}
else{
echo"<!-- no specified ad -->";
}
?>