Daniel B or any one I need more
help. I keep getting an error on the
last line for the INSERT INTO
heres the error
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Program Files\Abyss Web Server\htdocs\forums\user_process.php on line 45
can you please tell me how to fix this error
Thanks
PHP and mysql?
I think you're missing the double quote and semi-colon at the end of the query.
$insert = "INSERT INTO tablename (username, password) VALUES ('".$_POST['username']."', '".$_POST['pass']."')";
Reply:You need to post the whole line and not just a snippet.
Reply:i don't see anything wrong. can you post the full line/block of code?
however, try this:
VALUES ('" . $_POST['username'] . "', '" . $_POST['pass'] . "')"
dont miss the double quote at the end and give a space before and after the dots.
song titles
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment