The fastest way to do this is very simple :
store the last Id of your banner , get another from your SQL table (with
rand) and display it (repeat if the Id is the same)..
And, in your html page, add a refresh=xx to refresh the ad page.

P.E. Baroiller

"Stephen" <[EMAIL PROTECTED]> a écrit dans le message de news:
001901c28827$d69d72a0$[EMAIL PROTECTED]
I have a link exchange script and I need to rotate the ads each time a page
refreshes. How exactly can I do this?

I have an id field for each ad. How could I display a different ad each time
the page refreshes using the id field?

Stephen Craton

"Life is a gift from God. Wasting it is like destroying a gift you got from
the person you love most." --

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to