Jump to content

error whitespace


Recommended Posts

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\wamp\www\login.php on line 20
and this is the line thats giving out the error

can anyone tell me whats wrong here?

Link to comment
Share on other sites

It's somewhere around it, not this line itself. What are the first 20 lines of login.php?BTW, the arguments to setcookie() should probably look like:

setcookie("id", $row['id'], $expire);

but like I said, that line itself isn't causing the parse error, so the fix here is still going to give you a parse error.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...