|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ziff Davis Enterprise Virtual Tradeshows: Hot Topics, Cutting Edge Technology, Real-time Interaction with IT Professionals. Learn more at ziffdavisvts.com
|
|
#1
|
|||
|
|||
|
getting random mysql rows
just a tip,you can use mysql to get random rows with the rand function:
select * from myTable order by rand() limit 5 to get 5 random rows from a table called myTable. It's helped me before and i'm sure it will help everyone else! |
|
#2
|
|||
|
|||
|
The best way to use it, is if your got a link section. What you can do is set it up to have random links down the side of your first page.
Or have a random screenshot on the main page, the possibilities are endless |
|
#3
|
|||
|
|||
|
Thanks for your sharing.
__________________
Regrads, ckchin |
|
#4
|
|||
|
|||
|
if only sql server had a fuunction like this
![]() |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > getting random mysql rows |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|