Warning: copy(../pic_comsheet/Winter.jpg) [function.copy]: failed to open stream: Permission denied in d:\ip1\sbsoft.co.th\www\ecom\admin\p_comsheet.php on line 28
หมายความว่ายังงัยครับ
โค้ดครับ
<?
$title=$_POST[title];
$System=$_POST[System];
$Categorys=$_POST[Categorys];
$Issued=$_POST[Issued];
$Written=$_POST[Written];
$Person=$_POST[Person];
$Need=$_POST[Need];
$Description=$_POST[Description];
$filename=$_FILES[file][name];
$tmp=$_FILES[file][tmp_name];
print "title=$title<br>System=$System<br>Categorys=$Categorys<br>Issued=$Issued<br>Written=$Written<br>Person=$Person<br>Need=$Need<br>Description=$Description<br>filename=$filename<br>tmp=$tmp";
$sql1="INSERT INTO `comsheet` (`title` ,`systemname` ,`category` ,`issued_by` ,`written_on` ,`person` ,`need_reply_by` ,`description` ,`picture` )
VALUES ('$title', '$System', '$Categorys', '$Issued', '$Written', '$Person', '$Need', '$Description', '$filename')";
mysql_query($sql1) or die("Err Database1");
copy ($tmp, "../pic_comsheet/$filename"); //บรรทัดนี้บรรทัดที่28
$s="SELECT * FROM `comsheet` order by id desc LIMIT 0 , 30 ";
$re=mysql_query($s) or die("Err...$s");
$r=mysql_fetch_row($re);
//echo "<meta http-equiv='refresh' content='0; url=detail_comsheet.php?id=$r[0]'>" ;
?>
Warning: copy(../pic_comsheet/Winter.jpg) [function.copy]: failed to open stream: Permission denied in d:\ip1\sbsoft.co.th\www\ecom\admin\p_comsheet.php on line 28