Help...

Discussion in 'PHP' started by mostwanted, Jan 31, 2012.

  1. #1
    Newbie to php and need some help here...

    Getting this error...

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in
    Code (markup):
    this is the line....
    Thanks in advance!!
     
    mostwanted, Jan 31, 2012 IP
  2. aidanriley

    aidanriley Banned

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    51
    #2
    What is with the alternating single/double quotes?
    Also, the ?> tag is never closed
    And you might need to escape the double quotes using a \ character or reformat the way you have it written.
    Are you trying to have it output $siteUrl + "photo-" + $cpId + ".html"?
     
    aidanriley, Jan 31, 2012 IP
  3. Cobnut

    Cobnut Peon

    Messages:
    184
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try:

    As Aidan has said, there's a whole mess of single and double quotes in the original, and the tags weren't closed properly. I presume you're closing the <a> tag properly after the description= bit?

    Jon
     
    Cobnut, Feb 1, 2012 IP
  4. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #4
    If the OP is not bothering to post the whole line, I don't really see how we can help to the fullest :s
     
    danx10, Feb 1, 2012 IP