mysql - MySQLi insert on duplicate key update doesn't work -


i got following mysqli query:

mysqli_query($con, "insert problem_accounts (igid, reason) values ('$igid', '$reason') on duplicate key update igid = '$igid', reason = '$reason'"); 

which supposed update values if exist doesn't that. instead inserts row. point out error?


Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -

javascript - Using jquery append to add option values into a select element not working -