도와주세요!!! 다른 2개의 최신글추출시 최신글이 같아짐 ㅜ.ㅜ

4.jpg
웹디가 프로그램까지 하려니깐 죽겠어요...ㅜ.ㅜ
보통은 그누보드로 쉽게 게시판달구 최신글까지 추출하는데요. 이번에 리뉴얼하는 싸이트가 asp로 되어있어서 아주 돌겠어요. 좀 도와주세요.
메인에 최신글을 추출하는데요.
우선 한개 박스에 new.asp를 인크루드했어요.
 <td><!--#include file="../incFILE/news.asp"--></td>
 
new.asp파일은 다음과 같아요.
위생략
'== 기본서치
  IF str_whereSTR = "" THEN
 str_whereYN  = "Y"
 str_whereOPT = "bdDIVI"
 str_whereSTR  = "01"
  END IF
 
 '== 기본정렬
  IF str_orderSTR = "" THEN
 str_orderYN  = "Y"
 str_orderOPT = "bdREID  DESC ,  bdRESTEP"
 str_orderSTR  = "ASC"
  END IF
  
 '== 기본페이지리스트 수
 IF str_viewNUM = "" THEN str_viewNUM=5 ELSE str_viewNUM = int(str_viewNUM)
%>
<!--#include file="../incFILE/basicSEND.asp"-->
<!--#include file="../incFILE/queryLIST.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr"></head>
<body leftmargin="0" topmargin="0" >
<table width="260" height="32" border="0" cellpadding="0" cellspacing="0" style="border-style:none;">
             
              <%FOR i=0 TO str_listROW-1%>
              <tr style="cursor:hand" onClick="location.href='bd_edit.asp?page=<%=str_page%>&whereYN=Y&whereOPT=bdIDX&whereSTR=<%=arr_field(i,5)%>';"  onmouseover="this.style.background='#e5e5e5'" onmouseout="this.style.background='#F9F6F0'">
                <%FOR j=0 TO ub_myFIELD-myEXTRA%>
                <td height="20"><%
     SELECT CASE j
       CASE 0
      response.write "<img src=../siteIMG/icon.gif width=12 height=11 border=0> "
         IF len(arr_field(i,j)) > 20 THEN
         response.write left(arr_field(i,j),20) & "..."
      ELSE
       response.write arr_field(i,j)
      END IF
                               
       END SELECT
     %>
                </td>
                <%NEXT%>
              </tr>
              <%NEXT%>
            </table>
</body>
</html>
 
그다음 메인에 new.asp대신 freeboard.asp를 인크루드했어요.
freeboard.asp파일은 new.asp파일과 내용은 동일하고 빨간글씨가 str_whereSTR  = "41" 그리고  <tr style="cursor:hand" onClick="location.href='bd41_edit.asp?page=<%=str_page%>&whereYN=Y&whereOPT=bdIDX&whereSTR=<%=arr_field(i,5)%>';" 
만 달라요...
 
이렇게 각각 따로 인크루드하면 잘됩니다. 사진 1과 2처럼
근데 같이 인크루드하면
 <tr>
               
<td><!--#include file="../incFILE/news.asp"--></td>
              </tr>
            </table></td>
            <td  align="right"><table width="260" border="0" cellspacing="0" cellpadding="0">
              <tr>
               
<td><!--#include file="../incFILE/freeboard.asp"--></td>
              </tr>
 
하면 사진3처럼 둘중 나중에 인쿠르드한 파일로 둘다 변해요.
 
좀 도와주십시오..오늘하루종일 삽질했어요 ㅜ.ㅜ

            

첨부파일

4.jpg (103.1 KB)
0회 2006-08-01 01:17
|

댓글 1개

소스 전체를 봐야겠습니다.
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
19년 전 조회 1,565
19년 전 조회 1,520
19년 전 조회 2,363
19년 전 조회 2,481
19년 전 조회 1,517
19년 전 조회 1,994
19년 전 조회 1,480
19년 전 조회 1,518
19년 전 조회 1,622
19년 전 조회 1,516
19년 전 조회 1,512
19년 전 조회 1,521
19년 전 조회 1,432
19년 전 조회 1,505
19년 전 조회 1,802
19년 전 조회 1,573
19년 전 조회 1,297
19년 전 조회 1,536
19년 전 조회 1,612
19년 전 조회 1,674