在重复键更新上插入...不起作用

时间:2018-08-21 21:56:39

标签: sql-update sql-insert

此代码工作正常,但在上周停止工作。有什么建议吗?

$PlayerDataInsert = "INSERT INTO PlayerData 
                        SET PersonID = '$PersonID'
                          , CallUp = '$CallUp' 
                        ON DUPLICATE KEY 
                          UPDATE CallUp = '$CallUp'"; 
IF (!$update = mysqli_query($cxn, $PlayerDataInsert)) 
{ 
  echo "Something went dreadfully wrong!!! Player Data" 
}

0 个答案:

没有答案