1.
<img src=
"myfile/<?=$objResult["
image
"];?>"
width=
"1050"
heigth=
"50"
onclick=
"window.location='delete.php?image=<?=$objResult["
';">
$image
=
$_GET
[
'image'
];
2.
@unlink(
"myfile/"
.
);
<a href=
"delete.php?file=<?=$objResult["
file
><?=
$objResult
"file"
];?></a>
$file
'file'
3.
$delete
=mysql_query(
"delete from tb_example WHERE file='"
"'"
)
or
die
(mysql_error());
//หรือเพื่อความชัว แนบ id มาด้วยก็ดีครับ
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง