/ Published in: PHP
Expand |
Embed | Plain Text
$query2 = "SELECT * FROM table T JOIN (SELECT MAX(id) AS id FROM table) AS x ON T.id >= FLOOR(x.id*RAND()) LIMIT 10;";
You need to login to post a comment.
$query2 = "SELECT * FROM table T JOIN (SELECT MAX(id) AS id FROM table) AS x ON T.id >= FLOOR(x.id*RAND()) LIMIT 10;";
You need to login to post a comment.