divinedesigns1 Posted June 22, 2012 Share Posted June 22, 2012 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 setcookie("id,$row['id'],$expire"); can anyone tell me whats wrong here? Link to comment Share on other sites More sharing options...
Guest So Called Posted June 22, 2012 Share Posted June 22, 2012 Maybe you wanted this instead: setcookie("id", $row['id'], $expire); Link to comment Share on other sites More sharing options...
boen_robot Posted June 22, 2012 Share Posted June 22, 2012 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 More sharing options...
divinedesigns1 Posted June 22, 2012 Author Share Posted June 22, 2012 thanks, that was the mistake Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now