Re: [PHP] Not sure how to describe this problem..

2001-07-10 Thread infoz
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

[PHP] Not sure how to describe this problem..

2001-07-10 Thread Chad Day
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 > $