I need help on how to randomize the last 10 lines of MySql records.
$mysqld = mysql_query(select * from table where amount > amount2 and code = '$code' order by time DESC limit 1);
From the above statement, I need to randomize the last 10 lines, ordered by time, but limited only to displayed.
EDIT . In other words, I need the table to be sorted by time, and then I need to focus on the last 10 rows. Of these last 10 lines, I need to choose one, and it should be random as I get.
Is it possible?
thanks
source share