I agreee that it sounds like you're running into concurrency issues with
mySQL.
I would just adopt a statistical approach, and pick a banner at random each
time...if the random number generator works properly, then you'll get an
even distribution over the universe of available banners.
If you ne
I have a chunk of code in a webpage that works like this, to rotate some
ads.. :
if ($row = mysql_fetch_array($getads)) {
do {
$POS = $row[LASTPOS];
$ID = $row[ID];
$POS++;
if ($POS > $
2 matches
Mail list logo