-3

Whats wrong in following query??? am getting error

Parse error:

syntax error, unexpected 'INSERT' (T_STRING)

$NEW_TOKEN = mysql_query("INSERT INTO `iPhone_users` (`DEVICE_TOKEN`,`NAME`,`LOGIN_ID`,`CREATED_AT`) VALUES ('$DEVICE_TOKEN','$STUDENT_FIRST_NAME','$LOGIN_ID','$TODAY')");
Shadow
  • 33,525
  • 10
  • 51
  • 64
Akshay Ambekar
  • 325
  • 1
  • 3
  • 14

1 Answers1

2

You need to close either a single quote or double quote which started before the line you pasted. There is nothing wrong with the query itself.

The error you are getting is a PHP parse error.

Moazzam Khan
  • 49
  • 1
  • 2