<?php include "login_name.php"; ?> <? //session_start(); include("connect.php"); if(!isset($_SESSION['idSeller'])) { echo "<script>alert('Please login.');window.location='home.php';</script>"; session_start(); exit ( ); } ?> <body> <?php $fish1_id = $_GET['fish1_id']; $strSQL = "select * from fish1 where fish1_id ='$fish1_id'"; $objQuery = mysql_query($strSQL); while($array = mysql_fetch_array($objQuery)){ } $strSQL = "delete from fish1 where fish1_id = '$fish1_id'";///aEAc?aAeC?c?eIAA?INA?NA $objQuery = mysql_query($strSQL); if($_FILES["fish1_pic"]["name"] != "") { if(move_uploaded_file($_FILES["fish1_pic"]["tmp_name"],"upload/".$_FILES["fish1_pic"]["name"])) { @unlink("upload/".$_POST["fish1_pic"]["name"]); $objQuery = mysql_query($strSQL); } } ?> </body> <script language="javascript"> window.location.href="search_fish_admin.php"; </script>
<?php include "login_name.php"; ?> <? //session_start(); include("connect.php"); if(!isset($_SESSION['idSeller'])) { echo "<script>alert('Please login.');window.location='home.php';</script>"; session_start(); exit ( ); } ?> <body> <?php $fish1_id = $_GET['fish1_id']; $strSQL = "select * from fish1 where fish1_id ='$fish1_id'"; $objQuery = mysql_query($strSQL); $array = mysql_fetch_array($objQuery) if($array["fish1_pic"] != ""){ @unlink("upload/".$array["fish1_pic"]); } $strSQL = "delete from fish1 where fish1_id = '$fish1_id'"; $objQuery = mysql_query($strSQL); ?> </body> <script language="javascript"> window.location.href="search_fish_admin.php"; </script>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง