Warning: unlink(C:\AppServ\www\NewsPic/): Permission denied in c:\appserv\www\eswc\admin\delnews.php on line 32
<?php
include ("ConnectBase.inc");
$path="C:\AppServ\www\NewsPic";
$checkbox=$_POST["checkbox"];
$i=0;
while($i<count($checkbox))
{
$id=$checkbox[$i];
$sql1="select pic_news from tbnews where news_id='$id'";
$result=mysql_query($sql1,$Conn);
$rs=mysql_fetch_array($result);
$filename=$rs["pic_news"];
unlink($path."/".$filename);
$sql2="delete from tbnews where news_id='$id'";
$result=mysql_query($sql2,$Conn);
$i++;
}/*end while*/
?>
ช่วยหน่อยครับ รบกวนด้วยครับ