Re: What happens when i dont use the semicolon for closing my statement [message #177890 is a reply to message #177879] |
Wed, 25 April 2012 13:33 |
Redcat
Messages: 3 Registered: February 2012
Karma:
|
Junior Member |
|
|
On Wed, 25 Apr 2012 03:05:01 -0700, hakimserwa wrote:
> Parse error: syntax error, unexpected '}', expecting ',' or ';' in
> C:\xampp\htdocs\hello.php on line 13
>
> how do i read this error and undcerstan what it means so next time in
> can be able to solve it so quickly.
In this case take a look at line 13 (though with PHP error reporting -
with any language's error reporting, actually - the error might not
actually be on the line mentioned in the report). If you intentionally
left off the semicolon as was suggested in a previous post, to see what
would happen, then the error message is saying "Hey, you left something
off!". The parser was expecting to see a ',' or a ';' but it found a '}'
instead.
If this error message doesn't seem to jibe with what you expect, then
post the entire php file so we can look at it and we'll figure out what
the error was.
Redcat
|
|
|