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 -

jquery - javascript onscroll fade same class but with different div -