PHP/CSS code for displaying advertisment

  • planetsap
  • Novice
  • Novice
  • No Avatar
  • Joined: Oct 26, 2009
  • Posts: 17
  • Status: Offline

Post November 30th, 2009, 11:40 pm

Hi,

I like to dynamically display multiple advertisement (after each refresh) in the same box. Can somebody please provide me sample code or link to some site.

Thank you.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 30th, 2009, 11:40 pm

  • nexuslite
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Feb 11, 2010
  • Posts: 10
  • Loc: Keizer, OR
  • Status: Offline

Post February 11th, 2010, 7:14 am

Something like this might help

Code: [ Select ]
$ad[] = '<div><!-- Ad Code 0 --></div>';
$ad[] = '<div><!-- Ad Code 0 --></div>';
$ad[] = '<div><!-- Ad Code 0 --></div>';

echo $ad[rand(count($ad))];
  1. $ad[] = '<div><!-- Ad Code 0 --></div>';
  2. $ad[] = '<div><!-- Ad Code 0 --></div>';
  3. $ad[] = '<div><!-- Ad Code 0 --></div>';
  4. echo $ad[rand(count($ad))];

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 149 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.