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.

Simple PHP problem (HELP!)

Discussion in 'PHP' started by primeelite, Sep 13, 2007.

  1. #1
    I am having problems deleting out some of this php to make it so I can post a Commision Junction smart zone in its place. This is on my left sidebar right now on my website and look to get the weather stuff deleted so I can put a sidebanner in its place. Everytime I try to do it my way I get a php error. Here is the code.

     
    primeelite, Sep 13, 2007 IP
  2. JPRuss

    JPRuss Peon

    Messages:
    119
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The code looks in syntax okay to me from what you've posted. Can u post the php error you are getting?

    If you want to replace the weather portion with the commision junction zone, I would just remove everything between the <? and ?> and just add the HTML/javascript directly

    
    <table width="100%" border="0" cellpadding="0" cellspacing=" class="mostPopular">
    <tr>
    <td><div class="rightHeader" ></div></td>
    </tr>
    <tr>
    <td>
    <!-- Paste your cj stuff here --!>
    </td>
    </tr>
    </table>
    HTML:
     
    JPRuss, Sep 13, 2007 IP
  3. primeelite

    primeelite Peon

    Messages:
    1,825
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I tried what you said above and got this

     
    primeelite, Sep 13, 2007 IP
  4. undir

    undir Peon

    Messages:
    696
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I would stick to this
     
    undir, Sep 13, 2007 IP
  5. primeelite

    primeelite Peon

    Messages:
    1,825
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yeah for some reason neither worked
     
    primeelite, Sep 13, 2007 IP
  6. primeelite

    primeelite Peon

    Messages:
    1,825
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yeah for some reason neither worked
     
    primeelite, Sep 13, 2007 IP
  7. JPRuss

    JPRuss Peon

    Messages:
    119
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    It's not in the text you posted but somewhere I suspect you have a < character somewhere inside the <? ?> inside the weather.php probably around line 2.
     
    JPRuss, Sep 13, 2007 IP
  8. primeelite

    primeelite Peon

    Messages:
    1,825
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #8
    primeelite, Sep 13, 2007 IP
  9. JPRuss

    JPRuss Peon

    Messages:
    119
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Great, I am glad you got it working !
     
    JPRuss, Sep 14, 2007 IP