PHP/CSS code for displaying advertisment

  • planetsap
  • Novice
  • Novice
  • planetsap
  • Posts: 17

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • nexuslite
  • Newbie
  • Newbie
  • nexuslite
  • Posts: 10
  • Loc: Keizer, OR

Post 3+ Months Ago

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 150 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.