View Single Post
Old 03-26-2005, 07:22 AM  
mortenb
Confirmed User
 
mortenb's Avatar
 
Join Date: Jul 2004
Location: Denmark ICQ: 7880009
Posts: 2,203
Quote:
Originally Posted by reggy
Mortenb-thanx the response. I want to be able to display about 10links on a page and have them rotate from a list of about 20 links - how can i do that?
the easiest would be to put the links in a mysql database and call them with and sql query like this one:
Code:
SELECT
    link
FROM
    links
ORDER BY
    RAND()
LIMIT 0,10
Then the sql code would select 10 random links each time it is called..
mortenb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote