Page 1 of 1

How do i make a randomly changing list?

Posted: Thu Mar 26, 2009 5:12 pm
by Seraphimk
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 ?

Re: How do i make a randomly changing list?

Posted: Thu Mar 26, 2009 11:26 pm
by sujithtomy
Hello,

if you are using mysql to store data,

you could usequery like this

Code: Select all

SELECT * FROM table ORDER BY rand()
ORDER BY rand() will do it for you