spacing

Discussion in 'Co-op Advertising Network' started by tomcromp, Feb 23, 2005.

  1. #1
    Hello on my site www.imagehostwiz.com the links at the bottom are not spaced out correctly and when i put a "," after i get a parse error
     
    tomcromp, Feb 23, 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
    What's the PHP code you are using to display ads?
     
    digitalpoint, Feb 23, 2005 IP
  3. tomcromp

    tomcromp Active Member

    Messages:
    454
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #3
    <?php
    	ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    	include ('ad_network_176.php');
    echo $ad_network[0];	
    echo $ad_network[1];
    echo $ad_network[2];
    echo $ad_network[3];
    echo $ad_network[4];
    ?>
    PHP:
     
    tomcromp, Feb 23, 2005 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    if you want to space your ads with a comma, replace your echo lines with the following:

    echo implode (', ', $ad_network);
    PHP:
     
    digitalpoint, Feb 23, 2005 IP
  5. tomcromp

    tomcromp Active Member

    Messages:
    454
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #5
    So this
    
    <?php
        ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
        include ('ad_network_176.php');
    echo implode ($ad_network[0]);
    echo implode (', ', $ad_network[1]);
    echo implode (', ', $ad_network[2]);
    echo implode (', ', $ad_network[3]);
    echo implode (', ', $ad_network[4]);
    ?> 
    
    PHP:
    ?
    Cheers
    Tom
     
    tomcromp, Feb 23, 2005 IP