최신글이 중복되서나와요 > 그누4 질문답변

그누4 질문답변

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

최신글이 중복되서나와요 정보

최신글이 중복되서나와요

본문

그림보시면 같은 최신글이 두개씩 중복되서 나와요

어떻게 된건지 답답합니다 어디서 잘못된건지요??

게시판은 하나씩밖에 생성 하지 않앗습니다... 원래 저런건가요????





////////////////////////////////////////////////////////////////////

<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");

$g4['title'] = "";
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/head.sub.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META http-equiv="imagetoolbar" content="no">
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-bottom: 0px;
margin-right: 0px;
background-image: url();
background-repeat: repeat-x;
}
#apDiv1 {
position:absolute;
left:1033px;
top:363px;
width:217px;
height:211px;
z-index:1;
margin-top: 0px;
}
#hidden {
position:absolute;
left:415px;
top:135px;
width:228px;
height:99px;
z-index:1;
overflow: hidden;
}
#apDiv2 {
position:absolute;
left:1061px;
top:0px;
width:339;
height:251;
z-index:1;
}
#apDiv3 {
position:absolute;
left:1062px;
top:587px;
width:339;
height:221;
z-index:2;
}
#apDiv4 {
position:absolute;
left:555px;
top:773px;
width:319px;
height:212px;
z-index:-1;
visibility: visible;
}
-->
</style>
<script language=javascript src="../swf.js"></script>
</head>

<body rightmargin="0" style="overflow-Y: auto; overflow-X: hidden">
<div id="apDiv2"><img src="images/main_02.gif" width="339" height="251" /></div>
<table width="1061" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="1061" height="251" colspan="3" valign="top">
    <script>flash('../images/main_01.swf' , 1061 , 251, 0);</script>
    </td>
  </tr>
  <tr>
    <td width="1061" height="204" colspan="3" valign="top">
    <script>flash('../images/main_02.swf' , 1061 , 204, 0);</script>
        </td>
  </tr>
  <tr>
    <td width="132" height="133" align="left" valign="top"><img src="images/main_05.gif" width="132" height="133" /></td>
    <td width="648"><table width="648" height="133" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="306"><?
//  최신글
$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
    // 이 함수가 바로 최신글을 추출하는 역할을 합니다.
    // 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.

    // 사용방법
    // latest(스킨, 게시판아이디, 출력라인, 글자수);
    echo latest("basic", "haiim", 2, 70);
    echo "<p>\n";
}
?></td>
        <td width="39">&nbsp;</td>
        <td width="303"><?
//  최신글
$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
    // 이 함수가 바로 최신글을 추출하는 역할을 합니다.
    // 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.

    // 사용방법
    // latest(스킨, 게시판아이디, 출력라인, 글자수);
    echo latest("basic", "show_02", 2, 70);
    echo "<p>\n";
}
?></td>
      </tr>
    </table></td>
    <td width="281" align="right"><img src="images/main_07.gif" width="281" height="133" /></td>
  </tr>

</table>
<table width="700" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="images/main_09.gif" width="1061" height="222" /></td>
    <td><img src="images/main_10.png" width="339" height="222" /></td>
  </tr>
</table>
</body>
</html>


///////////////////////////////////////////////////////////////////////////////////////
  • 복사

댓글 전체

$sql = " select bo_table, bo_subject from $g4[board_table] order by gr_id, bo_table ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {

}

이게 들어가 있어서 그런거에요
© SIRSOFT
현재 페이지 제일 처음으로