我无法在需要时更新它。这是一个退出脚本,旨在使用已删除列中的值 1 更新选定的电子邮件行。我似乎无法让它更新,我认为这是我的 sql 的问题。非常感谢任何有助于理解这一点的帮助。作为说明:我正在抱歉,似乎有问题......
这是脚本。
<?php
if (isset($_GET['e'])) {
include_once "../storescripts/connect_to_mysql.php";
$email = $_GET['e'];
$sql_delete = mysql_query("UPDATE test WHERE email='$email' SET removed = '1'");
if (!$sql_delete) {
echo "Sorry there seems to be and issue when trying to remove your listing. Please email Admin directly using this email address: chris@.com";
} else {
echo "Sorry to see you go! You will not receive our newsletter ever again unless you relist. To gain access to our newsletter again simply let us know by email at chris@.com";
}
}
?>