echo 3f1c4e4b6b16bbbd69b2ee476dc4f83a問題
<br /> case 'add' : //新增<br /> $sku=$_POST['sku_txt'];<br /> $salesku=$_POST['salesku_txt'];<br /> $fnsku=$_POST['fnsku_txt'];<br /> $diqu=$_POST['diqu_txt'];<br /> $asin=$_POST['asin'];<br /> $accout=$_POST['account'];<br /> $type=$_POST['type'];<br /> $query = mysql_query("insert into `sku_rule` (`item_code`,`sku`,`asin`,`fnsku`,`delivery_areas`,`account`,`type`)values('$sku','$salesku','$asin','$fnsku','$diqu','$accout','$type')");<br /> if (mysql_affected_rows($conn) != 1){<br /> echo "<script> alert('添加失败!');location.href='sku_comparison.php';</script>";<br /> } else {<br /> echo "<script> alert('添加成功!');location.href='sku_comparison.php';</script>";<br /> <br /> }<br /> break;<br /> <br /> case 'del' : //删除<br /> <br /> $id=$_GET["delivery"];<br /> $SQL = "delete from `sku_rule` where id in($id)";<br /> $result = mysql_query($SQL);<br /> if (mysql_affected_rows($conn) != 1){<br /> echo "<script>alert('删除失败!');location.href='sku_comparison.php';</script>";<br /> } else {<br /> echo "<script>alert('删除成功!');location.href='sku_comparison.php';</script>";<br /> }<br /> break;<br />