Smudly wrote:The problem is, the website need to be viewed in a random order (not the same order every time).
Well, that's what would happen if you
dagon wrote:select a random row with a status of yes and credit >0
.
I need it to randomly show all sites, and once ALL sites have been shown, every site is able to be shown for a second time.
So add a column to say if it's already been seen or not.
Each time you want a new record, select a random one from among those that have not been seen (and satisfy the other criteria). When it has been seen, use the column to mark that the record has been seen.
If that fails (because there were no not-yet-seen records left), mark all of them as not seen, and try again.