최신글 정렬이요.. > 그누3질답

그누3질답

최신글 정렬이요.. 정보

그누보드 최신글 정렬이요..

본문

아무리 검색해봐도 안나온거 같고 뭔말인지 모르겠어서 이렇게 글로 올립니다

제가 심하게 초짜거든요...?

최신글을

보통 기본상태일때 나오는
-------------
게시판1
-------------
게시판2
-------------
게시판3
-------------

이런식이 아닌.




----------  -------------
  게시판 1 │ 게시판 2
------------------------
  갤러리  │  게시판
------------------------

↑이런식으로 정렬하고 싶은데요..방법을 모르겠어요-ㅅ-;
막 소스 넣어봤더니 링크처럼 이상하게 반복되는 형상이 되고..-ㅅ-;;


main.php소스입니다

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

define("_DOCTYPE_", "DESIGN");

$html_title = "d e e p g r a y";
?>

<table width='100%' cellpadding=0 cellspacing=0>
<colgroup width=''>
<colgroup width=5>
<colgroup width=170>
<tr>
    <td valign=top>

    <?
 //  최신글 시작
    $sql = " select bo_table, bo_subject from $cfg[table_board] order by gr_id, bo_table ";
    $result = sql_query($sql);
    for ($i=0; $row=mysql_fetch_array($result); $i++) {
        //echo "<table width=100%><tr><td height=25 bgcolor=#F0F0F0>&nbsp;<img src='image/icon_01.gif' align=absmiddle>&nbsp; <a href='./?doc=bbs/gnuboard.php&bo_table=$row[bo_table]'><b>$row[bo_subject]</b></a></td></tr></table>";
        # 이 함수가 바로 최신글을 추출하는 역할을 합니다.
        # 사용방법
        # latest(스킨, 게시판아이디, 출력라인, 글자수);
        # 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.

latest("js_latest_1", "free", 5, 40); latest("js_latest_1", "music", 5, 40);
latest("js_latest_3", "gallery", 5, 40);latest("js_latest_1", "flash", 5, 40);
        echo "<p>";
    }
    //  최신글 끝



    ?>
    </td>
    <td></td>
    <td valign=top>
        <!-- 투표 -->
        <? include "./bbs/vote.php"; ?>

        <!-- 공백 -->
        <table width=100% height=5><tr><td></td></tr></table>

        <!-- 카운터 -->
        <img src='image/bar_count.gif' border=0><br>
        <? include "./bbs/count.php"; ?>
    </td>
</tr>
</table>



어떻게 고쳐야할지 좀 알려주세요...ㅠ,.ㅜ
  • 복사

댓글 전체

답글로 만도님께서 방법을 알려주셨군요.
이것도 참고하세요.
팁앤테크에서 제목을 "main"으로 검색할때 나오는 글 두개...
http://www.sir.co.kr/?doc=bbs/gnuboard.php&bo_table=tiptech&sselect=wr_subject&stext=main&soperator=0&page=1&wr_id=1975
© SIRSOFT
현재 페이지 제일 처음으로