任何人都可以帮助找到我发生了什么吗?我想设置优惠券兑换功能。
<?php
include("mysql_connect.inc.php");
$coupon1 = $_POST['coupon1'];
$check = $_POST['check'];
$sql = "UPDATE coupon_table SET check='$check' WHERE coupon1='$coupon1'";
if(mysql_query($sql))
{
echo 'success!';
echo '<meta http-equiv=REFRESH CONTENT=2;url=redempt.php>';
}
else
{
echo 'fail!';
echo '<meta http-equiv=REFRESH CONTENT=2;url=redempt.php>';
}
?>