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

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

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -