New code is giving some pages problems

Discussion in 'Co-op Advertising Network' started by kyle422, Apr 2, 2005.

  1. #1
    I have the updated code working fine on most of my pages. I have a folder that is dynamically creating pages through php and my database. I was able to get ads to display properly on those before the update by adding this to the bottom of the template that the php pages used.
    <?
    include ('../ad_network.php');
    echo '<div class="ads"><a href="http://www.digitalpoint.com/tools/ad-network/?s=1905" rel="nofollow">Sponsored Ads</a>>>'.implode(" ", $ad_network).' <a href="http://www.elistingpros.com/">Real Estate News</a></div>';
    ?>
    </body>
    </html>
    PHP:
    With the update, it no longer diplays the ads anymore. :confused:
    I'm not very code with coding. A friend wrote the code above for me.
     
    kyle422, Apr 2, 2005 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Get rid of the implode...

    echo '<div class="ads"><a href="http://www.digitalpoint.com/tools/ad-network/?s=1905" rel="nofollow">Sponsored Ads</a>>>'.$ad_network.' <a href="http://www.elistingpros.com/">Real Estate News</a></div>';
    PHP:
     
    digitalpoint, Apr 2, 2005 IP
  3. kyle422

    kyle422 Peon

    Messages:
    290
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Worked like a charm. Thanks Shawn. Are we related? My last name is Hogan. J.K.
    ;)
     
    kyle422, Apr 2, 2005 IP