当我需要使用 WHERE 子句同时选择两个列时,我正在尝试删除 MYSQL 数据库中的记录:
$result3 = mysqli_query($con, " DELETE FROM Waiting WHERE ToUser='$ToEmail' AND ImageID='$ToEmailDB' ");
if ($result3==false) {
echo "No images waiting for " . $ToEmail . " for image " . $ToEmailDB;
}
else {
echo "Image and record deleted for " . $ToEmail . " for image " . $ToFileName . ".jpg and record " . $GuessImageID;
}
当我执行此语句$result3 returns true
但条目未删除时。我需要在格式中更改什么?字符串回显表中输入的正确数据。