Copy
'페이지totalpage = rs.pagecountrs.absolutepage = page %> <div align="center"><center><p><a href="Write.htm"><img src="images/write_new.gif" align="middle" border="0" WIDTH="31" HEIGHT="30"></a> <font face="arial" color="#004080"> <a href="http://ht.1stglobal.co.kr/test/list.asp"><strong><big><big>글 수정안됨.</big></big></strong></font></a> <a href="admin.asp"><img src="images/admin.gif" border="0" align="middle" WIDTH="109" HEIGHT="26"></a></p> </center></div><div align="center"><center><table border="0" cellspacing="2" width="600"> <tr> <td width="10%" bgcolor="#000080" align="center" height="25"><strong><font face="돋움" size="2" color="#FFFFFF">번호</font></strong></td> <td width="20%" bgcolor="#000080" align="center" height="25"><strong><font face="돋움" size="2" color="#FFFFFF">글쓴이</font></strong></td> <td width="20%" bgcolor="#000080" align="center" height="25"><strong><font face="돋움" size="2" color="#FFFFFF">날짜</font></strong></td> <td width="40%" bgcolor="#000080" align="center" height="25"><strong><font face="돋움" size="2" color="#FFFFFF">제목</font></strong></td> <td width="10%" bgcolor="#000080" align="center" height="25"><strong><font face="돋움" size="2" color="#FFFFFF">조회수</font></strong></td> </tr><% i = 1Do until rs.EOF Or i>rs.PageSize%> <tr> <td width="10%" align="center" height="25"><font face="돋움" size="2" color="#000000"><%=rs("num")%></font></td> <td width="20%" align="center" height="25"><font face="돋움" size="2" color="#000000"><%=rs("name")%></a></font></td> <td width="20%" align="center" height="25"><font face="돋움" size="2" color="#000000"><%=left(rs("writeday"),10)%></font></td> <td width="40%" align="left" height="25"><font face="돋움" size="2" color="#000000"> <a href="content.asp?idx=<%=rs("board_idx")%>"><%=rs("title")%></a></font></td> <td width="10%" align="center" height="25"><font face="돋움" size="2" color="#000000"><%=rs("readnum")%></font></td> </tr><% rs.MoveNexti=i+1 Loop%> </table> </center></div><center><hr width="600"></center><center><font face="돋움" size="2" color="#000000"><% if page <> 1 then%>< <a href="list.asp?page=<%=page-1%>">이전페이지</a> ><%end if%><% if Cint(page) <> Cint(totalpage) then%>< <a href="list.asp?page=<%=page+1%>">다음페이지</a> ><% end if%> <%=page%> page / <%=totalpage%> pages </font></center>
http://ht.1stglobal.co.kr/test/list.asp
현재 게시판연습중인데..페이지당 글이 5개바께없는데 10줄로 수정하고싶습니다..
i = 1로되잇어서 i = -9 이런식으로하면 페이지는 안줄어들고 페이지는 현재페이지그대로남아있고
똑같이 반복되는글이 올라옵니다..
문법이해가안되는데 주석도 좀달아주시면감사하겠습니다....
|
답변 1개 / 댓글 3개
채택된 답변
+20 포인트
port443
2015-04-02 (목) 11:13:21
rs.PageSize 값을 확인해보세요.
해당 소스에서는 알 수 없군요.
답변에 대한 댓글 3개
port443
2015-04-02 (목) 11:21:39
아뇨 소스가 다 필요하진 않습니다만 아마 추측컨데
rs.PageSize 에 5라고 잡혀있을겁니다. 그걸 10으로 바꿔보시지요.
rs.PageSize 에 5라고 잡혀있을겁니다. 그걸 10으로 바꿔보시지요.
답변을 작성하려면 로그인이 필요합니다.