다중테이블 최근게시물 질문이요. 정보
다중테이블 최근게시물 질문이요.
첨부파일
본문
서울국제공연예술제를 누르면 게시판으로 이동해야 되는데...
include_once("./_common.php"); 밑에
$g4[path] = "../bbs/"; 이부분 넣으라해서 넣었드니...
http://insadong.tv/bbs/board.php?bo_table=B48&wr_id=9 - 오류나는 주소
http://insadong.tv/bbs/bbs/board.php?bo_table=B48&wr_id=9 - 정상적으로 나와야 되는 주소인데요.
밑에 소스는 틀린게 없다고 생각 하는데여.... 정상적으로 나오게 하려면 어떻게 해야되는지 아시는분 말좀 해주세요.
<?
@header('Content-Type: text/html; charset=euc-kr');
include_once("./_common.php");
$g4[path] = "../bbs/";
?>
<ul class="txt_list1">
<?
$latest_skin_path = "$g4[path]skin/latest/$skin_dir";
$tmp_write_table = $g4['write_prefix'].$bo_table; // 게시판 테이블 전체이름
$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_num limit 0, $rows";
$result = sql_query($sql);
$num = @mysql_num_rows($result);
for ($i=0; $row = sql_fetch_array($result); $i++){
$list[$i] = get_list($row, $board, $latest_skin_path, $subject_len);
?>
<li>
<?
echo $list[$i]['icon_reply']." ";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "<strong>{$list[$i]['subject']}</strong>";
else
echo "{$list[$i]['subject']}";
echo "</a>";
if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-size:9px;font-family:verdana;color:#c4c4c4;font:bold;margin-top:0px;'><img src='$latest_skin_path/img/icon_comment.gif' border='0' align='absmiddle'> {$list[$i]['comment_cnt']}</span></a> ";
echo " " . $list[$i]['icon_new'];
echo " " . $list[$i]['icon_file'];
echo " " . $list[$i]['icon_link'];
echo " " . $list[$i]['icon_hot'];
echo " " . $list[$i]['icon_secret'];
?>
</li>
<? } ?>
<? if (count($list) == 0) { ?><li>등록된 게시물이 없습니다.</li><? } ?>
</ul>
댓글 전체
$g4[path] = "./bbs/"
<?
$g4_path = "./bbs"; // common.php 의 상대 경로
include_once("$g4_path/common.php");
?>
$latest_skin_path = "$g4[path]/bbs/skin/latest/$skin_dir"; //