Published in: PHP
$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.
Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text.
Tamedo on 06/04/08
Published in: PHP
$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.