if($no) {$here_no = $no;}
for($i=0; $i<$page_skip; $i++) { /////////////////////////////////////////
if(!$here_no) {
if(!$read[$i]) { continue; }
else {$no = $read[$i];}
}
$result = mysql_query("select * from $tbname where no=$no") or die(mysql_error());
$info = @mysql_fetch_array($result);
$info[subject] = stripslashes($info[subject]);
$info[subject] = html_use_not($info[subject]);
$info[contents] = stripslashes($info[contents]);
if($keyword) {
$info[contents] =str_replace("$keyword","$keyword",$info[contents]); //색깔변환
}
$info[contents] = nl2br($info[contents]);
if($ip_print == 'yes') {
$info[user_ip] = "(IP:".$info[user_ip].")";
}
$info[name] = stripslashes($info[name]);
$info[email] = stripslashes($info[email]);
if(!$info[email]) {
$writer = $info[name]; // 전자우편이 없는경우
} else {
$name = html_use_not($info[name]);
$writer = "$name ";
}
if(!eregi("http://",$info[homepage])) $info[homepage] = "http://$info[homepage]";
if(!$info[file_name]) {
$file = '첨부파일 없음';
} else {
$file_size = number_format($info[file_size]);
$file = " $info[file_name]";
}
$Sql = mysql_query("UPDATE $tbname SET hit = $info[hit]+1 WHERE no = $no");
?>
작성자 |
|
작성일 |
|
홈페이지 |
|
첨부파일 |
|
제 목 |
|
내 용 |
|
if($here_no) { break; }
} ////////////////////////////////////////////////////////////////////////////////
?>
include "incfiles/list.inc"; ?>
|