syntax error, unexpected T_STRING need help

Discussion in 'PHP' started by MrPJH, May 8, 2011.

  1. #1
    it is usually " but feeling too much tired it could be because tonight i don't have cig :(
    please resolve for me
    $defination = 'Hello ' stripslashes($defined["table_fieled"]) '<br> A New TEXT "' $defined_TT '"  Has Started on ' $definedSite '<br> The defined text sends: $' $defined ' text text <br> login to your account <br>follow defined textual instruction and you are done <br>' $URL ; 
    
    PHP:
    syntax error, unexpected T_STRING


    let me dream Thanks in advance
     
    MrPJH, May 8, 2011 IP
  2. Mak3MyDay

    Mak3MyDay Peon

    Messages:
    25
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You forgot to concatenate the strings with a dot -- .
    $defination = 'Hello ' . stripslashes($defined["table_fieled"]) . '<br> A New TEXT "' . $defined_TT . '"  Has Started on ' . $definedSite . '<br> The defined text sends: $' . $defined . ' text text <br> login to your account <br>follow defined textual instruction and you are done <br>' . $URL ;
    Code (markup):
     
    Mak3MyDay, May 8, 2011 IP
    MrPJH likes this.