echo <script>有关问题

WBOY
Release: 2016-06-13 12:45:05
Original
796 people have browsed it

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">&lt;br /&gt; case 'add' : //新增&lt;br /&gt; $sku=$_POST['sku_txt'];&lt;br /&gt; $salesku=$_POST['salesku_txt'];&lt;br /&gt; $fnsku=$_POST['fnsku_txt'];&lt;br /&gt; $diqu=$_POST['diqu_txt'];&lt;br /&gt; $asin=$_POST['asin'];&lt;br /&gt; $accout=$_POST['account'];&lt;br /&gt; $type=$_POST['type'];&lt;br /&gt; $query = mysql_query(&quot;insert into `sku_rule` (`item_code`,`sku`,`asin`,`fnsku`,`delivery_areas`,`account`,`type`)values('$sku','$salesku','$asin','$fnsku','$diqu','$accout','$type')&quot;);&lt;br /&gt; if (mysql_affected_rows($conn) != 1){&lt;br /&gt; echo &quot;&lt;script&gt; alert('添加失败!');location.href='sku_comparison.php';&lt;/script&gt;&quot;;&lt;br /&gt; } else {&lt;br /&gt; echo &quot;&lt;script&gt; alert('添加成功!');location.href='sku_comparison.php';&lt;/script&gt;&quot;;&lt;br /&gt; &lt;br /&gt; }&lt;br /&gt; break;&lt;br /&gt; &lt;br /&gt; case 'del' : //删除&lt;br /&gt; &lt;br /&gt; $id=$_GET[&quot;delivery&quot;];&lt;br /&gt; $SQL = &quot;delete from `sku_rule` where id in($id)&quot;;&lt;br /&gt; $result = mysql_query($SQL);&lt;br /&gt; if (mysql_affected_rows($conn) != 1){&lt;br /&gt; echo &quot;&lt;script&gt;alert('删除失败!');location.href='sku_comparison.php';&lt;/script&gt;&quot;;&lt;br /&gt; } else {&lt;br /&gt; echo &quot;&lt;script&gt;alert('删除成功!');location.href='sku_comparison.php';&lt;/script&gt;&quot;;&lt;br /&gt; }&lt;br /&gt; break;&lt;br /&gt; </pre><div class="contentsignin">Copy after login</div></div><br /> <br /> 删除提示输出的是正常 ,就是新增输出的不正常 ,怎么把代码也显示出来了 <div class='topic-extra-info'> <div class="tag"> </script>

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template