Random URL code

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I'm stuck on with this one ...

I have a blog and have a small section designated to place an image. The
image is actually embeded in an iFrame.

I am trying to find some code that will let me list a selection of urls that
feed the iframe, and then have them chosen randomly on each page load.

Does this make sense?

The page is a drupal blog so uses php

Any ideas?



Re: Random URL code

iPleb wrote:
Quoted text here. Click to load it

   Not really.

   Assuming you have these URLs stuffed in a database table somewhere.
You can use an "ORDER BY RAND()" clause in your PHP mysql select clause.
This is not very complex work if you have some experience with this.

Quoted text here. Click to load it

Site Timeline