<? include 'inc/function.php'; $dblink = connect_db(); $str = "DELETE from img where id ='$id'"; $re = mysqli_query($dblink, $str); $stra = "SELECT* from img where id ='$id'"; $rea = mysqli_query($dblink, $stra); $rows = mysqli_fetch_array($rea); //echo "$str"; @unlink("image/<?= $rows[name];?>"); ?>
<?php include 'inc/function.php'; $dblink = connect_db(); $str = "DELETE from img where id ='$id'"; $re = mysqli_query($dblink, $str); $stra = "SELECT* from img where id ='$id'"; $rea = mysqli_query($dblink, $stra); $rows = mysqli_fetch_array($rea); //echo "$str"; @unlink("image/".$rows['name']); ?>
<? include 'inc/function.php'; $dblink = connect_db(); $str = "DELETE from img where id ='$id'"; $re = mysqli_query($dblink, $str); $stra = "SELECT* from img where id ='$id'"; $rea = mysqli_query($dblink, $stra); $rows = mysqli_fetch_array($rea); //echo "$rows['name']"; @unlink("image/".$rows['name']); ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง