include "../../lib/siteconfig.php"; include "./include/root_lib.php"; $nCount = $_GET[spnum]; if (!$nCount) {$nCount=101;$category=1101;} else {$category = 1000 + $nCount;}; include("../../lib/category_lib.php"); ?>
if (!$pagecnt) { if (!$_SESSION['userid']) { echo(" "); } } ?> include "../../lib/trdbcon.php"; $sql = "select * from doc_con where category=$category"; $result = mysql_query($sql, $connect); $row = mysql_fetch_array($result); // 하나의 레코드 가져오기 $item_num = $row[num]; $category = $row[category]; $item_subject = str_replace(" ", " ", $row[subject]); $item_acclevel = $row[acc_level]; //접근권한 제어 if ($item_acclevel) { if (!$_SESSION['level']) { echo ""; exit; } } $item_hit = $row[hit]; $item_content = $row[content]; $new_hit = $item_hit + 1; $sql = "update doc_con set hit=$new_hit where num=$item_num"; // 글 조회수 증가시킴 mysql_query($sql, $connect); ?>