$s_ID) ) { header("location:webboard.php"); exit(); } include("config.inc.php"); //$from =$_ENV["COMPUTERNAME"]; mysql_connect($host,$user,$passwd); mysql_select_db($dbname); if ($mode=="Q") { // Check own topic or not ? $sqlQ_own ="select mid from $smf_data where No='$No' and mid='$mid' "; $resultQ_own = mysql_query($sqlA_own); $rowQ_own = mysql_num_rows($resultA_own); if ($rowQ_own ==0) { header("location:webboard.php"); exit(); } $sqlQ_pic="select imgpath from $smf_data where No='$No' and mid='$mid' and imgpath <> '' "; $sqlA_pic="select imgpath2 from $smf_ans where QuestionNo='$No' and mid='$mid' and imgpath2 <> '' "; $resultQ_pic=mysql_query($sqlQ_pic); $resultQ_pic _row=mysql_num_rows($sqlQ_pic); $resultA_pic =mysql_query($sqlA_pic); $resultA_pic _row=mysql_num_rows($sqlA_pic); // วนลูปลบภาพทั้งหมด while($row1 = mysql_fetch_array($resultQ_pic)){ if ($resultQ_pic _row > 0) { unlink("$row1[imgpath]"); } } if ($resultA_pic _row > 0) { while($row2 = mysql_fetch_array($resultA_pic)){ unlink("$row2[imgpath2]"); } } $sqlQ = "delete from $smf_data where No='$No' and mid='$mid' "; $sqlA = "delete from $smf_ans where QuestionNo='$No' and mid='$mid' "; $resultQ = mysql_query($sqlQ); $resultA = mysql_query($sqlA); } else if ($mode=="A") { // Check own comment or not ? $sqlA_own ="select mid from $smf_ans where QuestionNo='$No' and No='$QuestionNo' and mid='$mid' "; $resultA_own = mysql_query($sqlA_own); $rowA_own = mysql_num_rows($resultA_own); if ($rowA_own ==0) { header("location:show.php?No=$No"); exit(); } $sqlA_pic ="select imgpath2 from $smf_ans where QuestionNo='$No' and No='$QuestionNo' and mid='$mid' and imgpath2 <> '' "; $resultA_pic = mysql_query($sqlA_pic); $rowA_pic = mysql_num_rows($resultA_pic); if ($rowA_pic > 0) { // วนลูปลบภาพทั้งหมด while($row = mysql_fetch_array($resultA_pic)){ unlink("$row[imgpath2]"); } } $sqlA = "delete from $smf_ans where QuestionNo='$No' and No='$QuestionNo' and mid='$mid' "; $resultA = mysql_query($sqlA); //Check time for update/comment for user $sqlDate = "select Date from $smf_ans where QuestionNo='$No' and No='$QuestionNo' and mid='$mid' "; $resultDate = mysql_query($sqlDate); $rowDate = mysql_fetch_array($resultDate); echo $rowDate [Date]; $sqlReply= "update $smf_data set Reply=Reply-1 where No='$No' "; $resultReply = mysql_query($sqlReply); } ?> Short Charge Shock Rock Legend : เหล็ก-พันธุ์-เสือ 17 สิงหาคม 2556 อิมแพคอารีน่า เมืองทองธานี


กระดานสนทนา ShortChargeShock.com



ได้ทำการลบหัวข้อหมายเลข ออกจากระบบเรียบร้อยแล้ว
(รวมทั้งได้ลบความคิดเห็นทั้งหมดที่เกี่ยวข้อง)

[ กลับหน้าหลักเว็บบอร์ด ] พบข้อผิดพลาดไม่สามารถลบหัวข้อหมายเลข ได้

[ กลับหน้าหลักเว็บบอร์ด ] ได้ทำการลบความคิดเห็นหมายเลข ออกจากระบบเรียบร้อยแล้ว

[ กลับหน้าที่ผ่านมา ] พบข้อผิดพลาดไม่สามารถลบความคิดเห็นหมายเลข ได้

[ กลับหน้าที่ผ่านมา ]