Please Help (Parse error:)

Discussion in 'PHP' started by moulikminda, Jun 4, 2009.

  1. #1
    if(isset($_GET['done'])) {
    echo '<div align="center" style="color:red;font-weight:bold">'.$confirmation_message.'</div><br />';
    }


    In the above line i'm getting the following error.

    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING
     
    moulikminda, Jun 4, 2009 IP
  2. bluebenz

    bluebenz Well-Known Member

    Messages:
    876
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    138
    #2
    I am not sure the problem with your script,
    but my suggestion is try to make your code is easier to read by adding space after 'if', before .$confirmation_message, etc.
     
    bluebenz, Jun 4, 2009 IP
  3. moulikminda

    moulikminda Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the suggestion. I'll keep that in mind.
     
    moulikminda, Jun 4, 2009 IP
  4. HomeComputerGames

    HomeComputerGames Peon

    Messages:
    871
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    that should work fine. Does it not give you a line number?
    What are you using as an editor?
     
    HomeComputerGames, Jun 4, 2009 IP
  5. moulikminda

    moulikminda Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks people.. I got the problem solved :)
     
    moulikminda, Jun 4, 2009 IP