% if Request("GoTopage")="" then curpage=1 else curpage = cint(Request("GoTopage")) end if ipp = 10 Set DbCon=Server.CreateObject("ADODB.Connection") DbCon.Open "seoulart","seoulart","seoulart0217" sql= "SELECT count(TESTID) as cnt FROM board" set rs=Dbcon.Execute(sql) postcount = rs("cnt") Set DbRec=Server.CreateObject("ADODB.RecordSet") DbRec.CursorType = 1 DbRec.Open "SELECT * FROM board order by ref desc,step",DbCon totpage = postcount \ ipp if (totpage * ipp) <> postcount Then totpage = totpage + 1 For a = 1 To (curpage - 1) * ipp DbRec.MoveNext Next %>
![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||||||||||||||
![]() |
||||||||||||||||||||||||||
|
||||||||||||||||||||||||||