fantomel Posted January 14, 2010 Share Posted January 14, 2010 Hello can someone please explain to me how to display random records from a db? thank you Quote Link to comment Share on other sites More sharing options...
JAY6390 Posted January 14, 2010 Share Posted January 14, 2010 just add ORDER BY RAND() LIMIT X to the end of your query changing X to the number of records you want Quote Link to comment Share on other sites More sharing options...
fantomel Posted January 14, 2010 Author Share Posted January 14, 2010 just add ORDER BY RAND() LIMIT X to the end of your query changing X to the number of records you want thanks i`ll give it a try:D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.