How to display random record with PHP AND MYSQL?

Here is very simple way to display random records from MYSQL using PHP.

SELECT * FROM TableName ORDER BY RAND() LIMIT 0,1
Share

Leave a Reply

Your email address will not be published. Required fields are marked *