1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

banner code

Discussion in 'PHP' started by zalka@multiline.com.au, Dec 9, 2008.

  1. #1
    I have a site where members can submit their banner to be displayed on a surfing page the problem is the banners wont rotate only one banner is shown. As i know almost nothing about php i was hoping someone could point me in the right direction, i think the fault lies with this bit of code.
    SEMrush
    <?
    if ($banner_info[banner_url] == "")
    {
    echo "<div align=right>No banner to display</div>";
    }
    else
    {
    ?>

    <div align="right"><a href="<? echo $conf[site_url] ?>redirect.php?id=<? echo $banner_info[id] ?>" target="_blank"><img src="<? echo $banner_info[banner_url] ?>" height="60"></a></div>
    <?
    }
    ?>

    Thanking you in advance
    Zalka
     
    zalka@multiline.com.au, Dec 9, 2008 IP
    SEMrush
  2. crivion

    crivion Well-Known Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    160
    Digital Goods:
    3
    #2
    you should post the variables meanings too for us to get a help-hand!
     
    crivion, Dec 9, 2008 IP