Please help: syntax error, unexpected T_LNUMBER

Discussion in 'PHP' started by Wimbledon, May 3, 2009.

  1. #1
    This is the error I get on my file after I try to add a few lines of code to enable an ad banner on my site.

    Parse error: syntax error, unexpected T_LNUMBER in bfa_header_config.php on line 124

    The PHP file runs perfect without the PHP insert. I'm trying to insert this and make it work:

    $logo_area .='
    <td rowspan="2" valign="middle" class="header-banner">
    <?php echo adrotate_banner('1'); ?>
    </td>
    ';

    This line:
    <?php echo adrotate_banner('1'); ?>

    is directly from the AdRotate website. I'm told I'm supposed to insert the code like that yet I'm being thrown an error. Can anyone please help me?

    The code is attached.
     

    Attached Files:

    Wimbledon, May 3, 2009 IP
  2. hiteklife

    hiteklife Greenhorn

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #2
    Personally I can't stand trying to figure out multiline assignments, so I don't, lol. I would try changing...

    ...to...

    ...and see how that goes for you. Let me know if that helps at all.
     
    hiteklife, May 3, 2009 IP
  3. sheriffonline

    sheriffonline Well-Known Member

    Messages:
    1,650
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    160
    Digital Goods:
    1
    #3
    Please replce the following code

    With

    Let me know if it works for you...
     
    sheriffonline, May 3, 2009 IP
  4. Wimbledon

    Wimbledon Greenhorn

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #4
    Thank you both so much for your time, I tried hiteklife's code first and it now works perfectly!
     
    Wimbledon, May 4, 2009 IP
  5. hiteklife

    hiteklife Greenhorn

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #5
    :) Glad I could help
     
    hiteklife, May 10, 2009 IP