Hi Allen & CSN & all,
Emmmmmm....may be could u plz make ur explanation more clearer. How if my ads table will capture the weight as well?
Example:
My banner table has the structure as below:
bannerId
bannerName
bannerweight (1 - 10)
How should I select the banner out randomly according to their weight (higher weight appear the most) other than use SQL as below:
select from banner order by RAND()bannerweight
Well, I don't think that control the result from the sql statement is a good way becoz MYSQL will upgrade or do some ammencements from time to time. Who knows? RAND() may be have it's own limitation in the future.
BTW, has CSN find the solution?
Thanx for replying. I'm eagerly looking for the answer.