Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP Rotating Banner Ad Program

Status
Not open for further replies.

RSedlacek

Programmer
Oct 5, 1998
59
US
Can anyone recommend a good rotating banner exchange ad program?
 
Yeah, I found that too.

I'm looking for recommendations not just sources.

Thanks anyway!
 
I made my own banner-rotator, which works great!
It does not take a great deal of time, since it's really very simple!

I made this out.php script, which one makes hyperlinks to like this:
<a href="out.php?id=2" title="blah">blah</a>

Then the out.php uses header location to redirect.

For the frontend, I have one file which SELECT ... from ... ORDER BY RAND()

then you can either LIMIT 0,1 or you can fill an array with the resultset and then loop through it at each refresh of page, and if at end, make random again.. Or you just might loop thru all records..

You also make the out.php increase a field "clicks out" by one.

an admin interface can be nice too, but it's truly very simple! it's not much more advanced than a guestbook script..

I think a mediocre progrmamer can do it in 2-3 hrs, a beginner will maybe need 5+ hrs.

how much time it takes, depends on how good you want it to be. I think it's a great experience to write simple things as this by yourself.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top