How to display random record with PHP AND MYSQL?

Posted by om 15 May, 2009

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

View Code MYSQL
SELECT * FROM TableName ORDER BY RAND() LIMIT 0,1
  • Share/Bookmark
Categories : Easy PHP Tags :

Comments

No comments yet.


Leave a comment

(required)

(required)