Parse error: syntax error, unexpected T_LNUMBER

Discussion in 'Web Development and Programming' started by Adam, Apr 9, 2008.

  1. Adam

    Adam Regular Member

    Joined:
    Mar 17, 2008
    Messages:
    164
    Likes Received:
    0
    Location:
    USA - oursrc.com
    I'm getting a Parse error: syntax error, unexpected T_LNUMBER from this adbrite code. Any suggestions to fix it?

    Code:
    <script type="text/javascript">
       var AdBrite_Title_Color = '80ff00';
       var AdBrite_Text_Color = 'ffffff';
       var AdBrite_Background_Color = '444444';
       var AdBrite_Border_Color = '444444';
       var AdBrite_URL_Color = '008000';
    </script>
    <span style="white-space:nowrap;"><script src="http://ads.adbrite.com/mb/text_group.php?sid=xxx" type="text/javascript"></script><!--
    -->[url="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=xxx"].[/url]</span>
    
    
     
    Last edited by a moderator: Jan 6, 2014
  2. thedudleys

    thedudleys Regular Member

    Joined:
    Apr 9, 2008
    Messages:
    201
    Likes Received:
    0
    Location:
    Valrico, Fl
    yeah delete it then do the exact same thing and see if you get the same code error. if you do then contact adbrite about it and let them know that they are having programming errors when when their code it generates.

    that is the best thing that i do when i get a error code.

    :mrgreen:
     
  3. Adam

    Adam Regular Member

    Joined:
    Mar 17, 2008
    Messages:
    164
    Likes Received:
    0
    Location:
    USA - oursrc.com
    I figured out that this code is fine to insert into a html file but not a php. I had to modify it like this to resolve the problem:

    Code:
        
        <script type="text/javascript">
           var AdBrite_Title_Color = \'80ff00\';
           var AdBrite_Text_Color = \'ffffff\';
           var AdBrite_Background_Color = \'444444\';
           var AdBrite_Border_Color = \'444444\';
           var AdBrite_URL_Color = \'008000\';
        </script>
        <span style="white-space:nowrap;"><script src="http://ads.adbrite.com/mb/text_group.php?sid=xxx" type="text/javascript"></script><!--
        -->[url="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=xxx"].[/url]</span>
        
    
     
    Last edited by a moderator: Jan 6, 2014
  4. thedudleys

    thedudleys Regular Member

    Joined:
    Apr 9, 2008
    Messages:
    201
    Likes Received:
    0
    Location:
    Valrico, Fl
    well that is good that you got it to work with .php file from HTML...not really good php but not the greatest with HTML though...

    :D
     
Similar Threads
Loading...

Share This Page