echo <script>问题<br><img src="http://www.daimami.com/img/2014/01/01/1551013391.jpg" alt="" /><br /> <div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush: php"><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 /> </pre><div class="contentsignin">登录后复制</div></div><br /> <br /> 删除提示输出的是正常 ,就是新增输出的不正常 ,怎么把代码也显示出来了 <div class='topic-extra-info'> <div class="tag"> </script>