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
Post a Comment