<? session_start(); include ("../reg_globals.php"); include "../lib/dbconn.php"; $sql = "select * from $table where num=$num"; $result = mysqli_query($connect,$sql); $row = mysqli_fetch_array($result); $item_num = $row[num]; $item_id = $row[id]; $item_name = $row[name]; $item_nick = $row[nick]; $item_hit = $row[hit]; $file_name[0] = $row[file_name_0]; $file_name[1] = $row[file_name_1]; $file_name[2] = $row[file_name_2]; $file_type[0] = $row[file_type_0]; $file_type[1] = $row[file_type_1]; $file_type[2] = $row[file_type_2]; $file_copied[0] = $row[file_copied_0]; $file_copied[1] = $row[file_copied_1]; $file_copied[2] = $row[file_copied_2]; $item_date = $row[regist_day]; /* $item_subject = str_replace(" ", "&nbsp;", $row[subject]); $item_content = str_replace(" ", "&nbsp;", $row[content]); $item_content = str_replace("n", "<br>", $item_content); */ $item_subject = $row[subject]; $item_content = $row[content]; $new_hit = $item_hit + 1; $sql = "update $table set hit=$new_hit where num=$num"; // ±Û Á¶È¸¼ö Áõ°¡½ÃÅ´ mysqli_query($connect,$sql); // $sql ¿¡ ÀúÀåµÈ ¸í·É ½ÇÇà ?> |