connect(); $sql = "UPDATE $BOARD_TB SET hit = hit+1 WHERE no = $no"; $res_id = mysql_query($sql); $sql = "select * from $BOARD_TB WHERE no = $no"; $res_id = mysql_query($sql); $row = mysql_fetch_array($res_id); $content = $row["content"]; $content = nl2br($content); $content = stripslashes($content); $content = ereg_replace("
", " 
", $content); $date=date("Y/m/d", $row['reg_date']); $r_subject = stripslashes($row['subject']); //업로드파일 체크 if(($row['file_name'] != "") && ($row['file_size'] >= 1)) { $pds_file = ""; } else $pds_file =""; ?>



     
   / 다운로드=>

{$row['headnum']} order by headnum"; $res_next = mysql_query($sql); $row_next = mysql_fetch_array($res_next); if($row_next) { $next_subject = string_cut($row_next['subject'], 80); echo " "; } $sql = "select no, subject from $BOARD_TB WHERE headnum < {$row['headnum']} order by headnum desc"; $res_pre = mysql_query($sql); $row_pre = mysql_fetch_array($res_pre); if($row_pre) { $pre_subject = string_cut($row_pre['subject'], 80); echo " "; } ?>
▲ $next_subject
▼ $pre_subject
= 1) $re = ''; $date=date("Y/m/d", $row2['reg_date']); $r_subject = string_cut($row2['subject'], 80); $list_number = "↘"; if($row2['depth'] == "0") $list_number = $row2['headnum']; if($row['no'] == $row2['no']) { echo " "; } else { echo " "; } } ?>
$list_number   $depth$re$r_subject

{$row2['name']}

$date
$list_number   $depth$re$r_subject

{$row2['name']}

$date
close(); ?>