How do i make a randomly changing list?
Moderator: General Moderators
How do i make a randomly changing list?
I am creating a proxy advertising site and i want to create a table that has a list of proxies were there order randomly changes automatically every 10 min does anyone know how to do this or somewhere were i can find the script or somewhere which tells me how to do it ?
-
sujithtomy
- Forum Commoner
- Posts: 46
- Joined: Tue Mar 24, 2009 4:43 am
Re: How do i make a randomly changing list?
Hello,
if you are using mysql to store data,
you could usequery like this
ORDER BY rand() will do it for you
if you are using mysql to store data,
you could usequery like this
Code: Select all
SELECT * FROM table ORDER BY rand()