Warning: #1287 ‘VALUES function’ is deprecated and will be removed in a future release. Please use an alias (INSERT INTO … VALUES (…) AS alias) and replace VALUES(col) in the ON DUPLICATE KEY UPDATE clause with alias.col instead.
What should the new command look like??
I do not get this on my webpage , at least I haven’t noticed it.
Just notice you didn’t have an end bracket.
Personally I think standard naming conventions of variables makes it easier to read the code, but it’s a coder’s preference. I am just giving my .02 cents.
This error/warning doesn’t actually apply to what you are doing. However, because the programmer at MySql didn’t put it into the correct context, which is only for the ON DUPLICTE KEY UPDATE portion of a query, you are seeing it.
If you insert a space between the VALUES and the ( and/or use the VALUE (no S) keyword, the warning should (untested) go away.