Jump to content

Displaying random records from database


DarkHorizon

Recommended Posts

If i have a mysql database with 10 items in it. How do i display any 3 at random?

 

Every time the front page loads on my website i need 3 random products to appear.

 

I know how to display and sort databases, its the statement to retrieve a random items that is confusing me..

 

cheers guys..

Link to comment
https://forums.phpfreaks.com/topic/2600-displaying-random-records-from-database/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.