최근게시물에 여분필드가 왜 출력이 안되죠.??ㅜㅜ > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

최근게시물에 여분필드가 왜 출력이 안되죠.??ㅜㅜ 정보

최근게시물에 여분필드가 왜 출력이 안되죠.??ㅜㅜ

본문

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 : http://bdsin.ddoni.com/

최근 게시물 소스는..
------------------------------------------------------------------------------------------------------------------------------------------------------------------

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table width=100% cellpadding=0 cellspacing=0>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
    <td colspan=4 align=center>
        <table width=95%>
        <tr height=22>
            <td><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>&nbsp;&nbsp;
            <?
            echo $list[$i]['icon_reply'] . " ";
            echo "<a href='{$list[$i]['href']}'>";
            if ($list[$i]['is_notice'])
                echo "<font style='font-family:돋움; font-size:9pt; color:#2C88B9;'><strong>{$list[$i]['subject']}</strong></font>";
            else
                echo "<font style='font-family:돋움; font-size:9pt; color:#6A6A6A;'>{$list[$i]['subject']}</font>";
            echo "</a>";

            if ($list[$i]['comment_cnt'])
                echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:8pt; color:#9A9A9A;'>{$list[$i]['comment_cnt']}</span></a>";

            // if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
            // if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

            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'];
            ?></td>
<td><?=$list[$i][wr_5]?> </td>
<td>test</td>
</tr>
<tr>
<td>test</td>
<td>test</td>
</tr>
        </table></td>
</tr>
<? } ?>

<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>

</table>


이것입니다.

<?=$list[$i][wr_5]?> 이렇게 하면 최근게시물에 내용이 출력이 되어야 하는데 왜 출력이 안될까요>?ㅜㅜ


처음에는 여분필드를 쪼개서
<?
$ex10_filed = explode("|",$write[wr_10]);
$ext10_00  = $ex10_filed[0];
$ext10_01  = $ex10_filed[1];
$ext10_02  = $ex10_filed[2];
$ext10_03  = $ex10_filed[3];
$ext10_04  = $ex10_filed[4];
$ext10_05  = $ex10_filed[5];
$ext10_06  = $ex10_filed[6];
$ext10_07  = $ex10_filed[7];
$ext10_08  = $ex10_filed[8];
$ext10_09  = $ex10_filed[9];
$ext10_10  = $ex10_filed[10];
$ext10_11  = $ex10_filed[11];
$ext10_12  = $ex10_filed[12];
$ext10_13  = $ex10_filed[13];
$ext10_14  = $ex10_filed[14];
$ext10_15  = $ex10_filed[15];
$ext10_16  = $ex10_filed[16];
$ext10_17  = $ex10_filed[17];
$ext10_18  = $ex10_filed[18];
$ext10_19  = $ex10_filed[19];
$ext10_20  = $ex10_filed[20];
$ext10_21  = $ex10_filed[21];
$ext10_22  = $ex10_filed[22];
$ext10_23  = $ex10_filed[23];
$ext10_24  = $ex10_filed[24];
$ext10_25  = $ex10_filed[25];
$ext10_26  = $ex10_filed[26];
$ext10_27  = $ex10_filed[27];
$ext10_28  = $ex10_filed[28];
?>
이런식으로 쪼개서 최근게시물에 출력을 했는데..도저히 출력이 안되서..ㅠㅜ

기본 여분필드로 했는데도 출력이 안됩니다.ㅜㅠㅜ

댓글 전체

좀..자세히 여쭤봐도 될까요?ㅜㅡ
혹시나 새로 정해준다면.. 여분필드 쪼갠것으로도 가능할까요??
여분필드 쪼개서 작업했던 게시판을 다시 wr_1~10번의로 다시 조절을 할려니.ㅠㅠ
bbs/new.php 88라인쯤.

    $list[$i][gr_id] = $row[gr_id];
    $list[$i][bo_table] = $row[bo_table];
    $list[$i][name] = $name;
    $list[$i][comment] = $comment;
    $list[$i][href] = "./board.php?bo_table=$row[bo_table]&wr_id=$row2[wr_id]{$comment_link}";
    $list[$i][datetime] = $datetime;
    $list[$i][datetime2] = $datetime2;

    $list[$i][gr_subject] = $row[gr_subject];
    $list[$i][bo_subject] = $row[bo_subject];
    $list[$i][wr_subject] = $row2[wr_subject];
bbs/new.php파일에
$list[$i][wr_5] = $row2[wr_5];
이렇게 추가하고

최근게시물에
<?=$list[$i][$wr_5]?>
이렇게 출력을 했는데도 안나오네요..ㅠㅜ
new.php 파일을 건드리지 않아도 잘 되네요. ^^;;

별도로 어디를 고치셨을까용...

아래에서 보이는 5555 라는 숫자는 게시물의 여분필드 wr_5 값에 입력된 값입니다.

http://www.morssola.net/bbs/new.php
금방 아원님 답변보고 new파일에 있던 글들을 다 지우니..
그래도 보이네요^^;
전에는 왜 안됐을까>?ㅜㅜ
분명 <?=$list[$i][wr_5]?> 이렇게도 해 봤을텐데..ㅠㅠ

역시 프로그램공부를 해야..ㅠㅠ
전체 190 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT