View Full Version : Good php and mysql ad system.
Koolguy
October 29th, 2000, 01:24
Could you recommened a good mysql and php ad rotation system. Im currently using the one from phpwizard but I'm having problems with the banners being displayed equally.
jw
October 29th, 2000, 04:02
Yeah, I had the same problem when I downloaded it, but its pretty easy to fix. I found the patch on the phpAds support board. In view.inc.php3 and kcsm.php3, change srand((double)microtime()*1000000); to srand (time());
Hope it helps :)
Koolguy
October 29th, 2000, 22:11
I did exactly what you said but it still didn't change anything, the four ads are the only ones that are being displayed. aAy ideas?
jvv
October 30th, 2000, 05:47
You might want to try out phpAdsNew
http://sourceforge.net/projects/phpadsnew/
I haven't tried it myself, but it does get a high rating on script directories.
Koolguy
October 30th, 2000, 19:24
I got it working with this code:
function myshuffle($array)
{
mt_srand((double) microtime() * 1000000);
$num = count($array);
for ($i = 0; $i < $num; $i ++)
{
$n = mt_rand(0, $num - 1);
$temp = $array[$n];
$array[$n] = $array[$i];
$array[$i] = $temp;
}
}
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.