Join the Stack Overflow Community
Stack Overflow is a community of 6.7 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

I'm working through some PHP tutorials and I've come across some code that doesn't seem to be working, perhaps there is a missing bracket but I can't work out where.

(Sorry for the picture, I couldn't get the code pasted properly for some reason)

enter image description here

enter image description here

share|improve this question

closed as off-topic by mario, Schleis, Amal Murali, Shankar Damodaran, tereško Mar 29 '14 at 15:50

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question was caused by a problem that can no longer be reproduced or a simple typographical error. While similar questions may be on-topic here, this one was resolved in a manner unlikely to help future readers. This can often be avoided by identifying and closely inspecting the shortest program necessary to reproduce the problem before posting." – mario, Schleis, Amal Murali, Shankar Damodaran, tereško
If this question can be reworded to fit the rules in the help center, please edit the question.

    
Take a look at line 12,you have an extra ' hanging there – Schleis Mar 29 '14 at 15:49
    
This is why Notepad++, while right for some people is wrong for others. You need something with live syntax-verification; look at PHPStorm or NetBeans. – Dan Mar 29 '14 at 15:59
up vote 0 down vote accepted

I think this is caused because in line 12 you have "`":

10|  } else { // must be equivalent
11|     $message = "Well done!";
12|  `}

use this instead:

10|  } else { // must be equivalent
11|     $message = "Well done!";
12|  }
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.