Posts by Gustavo • 61 points
1 post
-
6
votes2
answers533
viewsQ: Mysql BD random record preventing consecutive equal records
I have a database where I want to pick up a random record. I can do this perfectly with: $query = "SELECT * FROM `mytable` ORDER BY RAND() The problem is that the database contains the entry order…