Randomly Choose Record from Drop menu

A

Anonymous

Guest
I can show a table record in a drop menu, but now i want to randomly select or show the record in the drop menu, e.g if the drop menu got 10 records, i want to randomly show, may be the 5rd record, how to do it? thanks
 
Make it in your MySql query!
Code:
mysql> SELECT id, nama FROM whatever ORDER BY rand();
 
Back
Top