location.href='webboard.html';"); exit; } //check status delete $topic_id=''; if(isset($_GET['id']) && ($_GET['id'] != '')) $topic_id=$_GET['id']; $sql_fordelete="select topic_id from webboard_topic where topic_id='$topic_id' and status_delete='2'"; $result_fordelete = mysql_query($sql_fordelete, $link); $count=0; if($result_fordelete != NULL) $count = mysql_num_rows($result_fordelete); if($count!=0){ print(""); print(""); exit; } //for header topic $sql_topic_h="select topic from webboard_topic where topic_id = '$topic_id' "; $result_topic_h=mysql_query($sql_topic_h, $link); $header_topic=''; if($result_topic_h != NULL){ $arr_topic_h=mysql_fetch_array($result_topic_h); $header_topic=$arr_topic_h['topic']; } $header['title'] = 'รักบ้านเกิด | ' . $header_topic; $header['stylesheet'][] = "css/style.css"; $active = 'webboard'; include "../../2013/header.php"; ?>
-แจ้งลบกระทู้   -ลงไปตอบกระทู้   -ขึ้นไปดูกระทู้
"); include("code/webboard_view_topic/answer.php"); print("
"); //ถ้ามีการกดปุ่มตอบกลับให้ใช้ ไฟล์ reply_back if(isset($_GET['reply_id']) && ($_GET['reply_id']!="")) { include("code/webboard_view_topic/reply_back.php"); } else { include("code/webboard_view_topic/reply.php"); } ?>