Newbie PHP Question

Discussion in 'Co-op Advertising Network' started by Briank, Jan 24, 2005.

  1. #1
    I would like to display three text link adds, but i cannot seem to figure out how adjust the code to make it look like this:

    Link 1 | Link 2 | Link 3​

    right now, there are no spaces when i try to advertise more than one link, can anyone edit the code to give me an example?

    My current code is:

    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../../:../');
    include ('ad_network.php');
    echo $ad_network[0];
    ?>​

    Thanks guys =x
     
    Briank, Jan 24, 2005 IP
  2. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #2
    echo $ad_network[0]." | ".$ad_network[1]." | ".$ad_network[2];
     
    nevetS, Jan 24, 2005 IP
  3. Briank

    Briank Peon

    Messages:
    109
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, for some reason when i tried it i was getting errors :p
     
    Briank, Jan 24, 2005 IP
  4. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #4
    no worries, probably a missing period or a quote. I've spent days in the past searching printouts for missing semicolons and misspellings :)
     
    nevetS, Jan 24, 2005 IP
    wendydettmer likes this.
  5. wendydettmer

    wendydettmer Peon

    Messages:
    1,462
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you are awesome and wonderful, i was having a similar problem. i should really just go learn php :)
     
    wendydettmer, Jan 24, 2005 IP
  6. Blogmaster

    Blogmaster Blood Type Dating Affiliate Manager

    Messages:
    25,924
    Likes Received:
    1,354
    Best Answers:
    0
    Trophy Points:
    380
    #6
    nevetS knows what time it is :)
     
    Blogmaster, Jan 24, 2005 IP