家视野家居商城http://www.jiashiye.com
<?php
session_start();
include "../include/head.php";
include "../include/cn.php";
include "../include/fun.php";
$sql="select * from product where id=".$_SESSION["id"];
$rs=mysql_query($sql);
$row=mysql_fetch_array($rs);
$filename=$_GET["picname"];
?>
<body>
<?php
unlink("img/$filename");
$f=str_replace($filename.",","",$row["pic"]);
$sql1="update product set pic='$f' where id=".$_SESSION["id"];
if (mysql_query($sql1)) {
box("产品图片删除成功","manage.php");
}
?>
</body>
</html>