for example...
$query = "UPDATE users SET user_name='$formVariables["username"]' ,
are the ' and " in the right places, I seem to be getting a parsing error. I need to know if there is something wrong with this syntax...
'$formVariables["username"]'
Look at your code. PHP parser can understand that string is anything between the opening and a matching closing quote. So, your opening is a double quote, your next double quote is before your username, so PHP believes your string is:
Code:
$query = "UPDATE users SET user_name='$formVariables["
From that point the parser is seriously confused by [tt]username"]' ,[/tt] and simply quits. I sugggest you rewrite your code to read:
I believe your comma at the end is not the end of the string but that you meant your string continues. That's what I represented by three dots. Hope you had the correct closing of the string with the double quote and a semi-colon.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.