Jump to content


Random Affiliates


2 replies to this topic

#1 user_f_ps_other

    Young Padawan

  • Members
  • Pip
  • 173 posts

Posted 17 June 2005 - 11:56 AM

How do you make the random affiliates effect. So when the page in refreshed the affiliates change. Thanks guys.

#2 Jaymz

    Retired P2L Staff

  • Members
  • PipPipPipPip
  • 4,104 posts

Posted 17 June 2005 - 04:42 PM

If you use an SQL query use

SELECT fields FROM table ORDER BY rand();


#3 Prelithe

    Young Padawan

  • Members
  • Pip
  • 50 posts

Posted 18 June 2005 - 12:32 AM

you could always use javascript and have your affiliates in an array, then use Math.random to generate a random number etc etc.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users