I am working on a website in which the user can set their own status I am trying to load a web page from a mobile device to set the user status. This is my code
But it doesn't seem to be working i get this error:
Line 14 is the mysql_query I posted above.
PHP:
$sql=mysql_query("UPDATE Character_Stats SET Status = '$_GET['status']' WHERE Username = '$_GET['username']' AND Location = '$_GET['location']', Coins = '$_GET['coins']'");
But it doesn't seem to be working i get this error:
HTML:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/harrywo2/public_html/SNACPF/UpdateStatus.php on line 14
Line 14 is the mysql_query I posted above.