zoukankan      html  css  js  c++  java
  • 最新最全产品删除页代码

    一般人我还不告诉呢。长春家视野家居商城http://www.jiashiye.com,有的时候写代码是一件很让人头疼的事总想找一些简单的能够代替,总想如果100行的代码我们10行就能都是先拿给有多好,线面这些代码就是我为这些人准备的希望通过这些代码能够让你跟家的方便he快捷

    <?php
    include "../include/head.php";
    include "../include/cn.php";
    include "../include/fun.php";
    ?>
    <body>
    <?php
    $sql="select * from product where id=".$_GET["id"];
    $rs=mysql_query($sql);
    $row=mysql_fetch_array($rs);
    $rr=explode(",",$row["pic"]);
    $c=count($rr)-1;
    for ($i=0;$i<$c;$i++)
      {
       if (file_exists("img/".$rr[$i]))
       {
        unlink ("img/".$rr[$i]);
        }
       }
    $sql1="delete from product where id=".$_GET["id"];
    if (mysql_query($sql1))
    {
     box("产品删除成功","manage.php");
     }
    ?>
    </body>
    </html>

  • 相关阅读:
    安全
    请求
    使用 Fetch
    安全
    script
    PWA
    link(外部资源关系)
    base(根URL)
    缓存
    IndexedDB基本概念
  • 原文地址:https://www.cnblogs.com/F-lower/p/3360233.html
Copyright © 2011-2022 走看看