ASP관련 질문드립니다..
본문
'페이지
totalpage = rs.pagecount
rs.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 = 1
Do 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.MoveNext
i=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 이런식으로하면 페이지는 안줄어들고 페이지는 현재페이지그대로남아있고
똑같이 반복되는글이 올라옵니다..
문법이해가안되는데 주석도 좀달아주시면감사하겠습니다....
!-->
답변을 작성하시기 전에 로그인 해주세요.