% If Request("GoTopage")="" Then curpage = 1 Else curpage = cint(Request("GoTopage")) End If CurPage2 = CurPage ipp = 30 set fso = Server.CreateObject("Scripting.FileSystemObject") set f = fso.OpenTextFile("C:\cons.dat") strconnect = f.Readline set Dbcon=Server.CreateObject("ADODB.Connection") Dbcon.Open strconnect sql = "SELECT COUNT(number) AS cnt FROM title_old WHERE (title LIKE '%û·æ%' AND SubStyle = '¿µÈ')" //sql = "SELECT COUNT(number) AS cnt FROM title WHERE (title LIKE '%û·æ%' AND SubStyle = '¿µÈ')" set rs=Dbcon.Execute(sql) postcount = rs("cnt") 'ÃÑ ±ÛÀÇ °³¼ö¸¦ ±¸ÇÑ´Ù Set DbRec=Server.CreateObject("ADODB.RecordSet") DbRec.CursorType = 1 If curpage = 1 Then DbRec.Open "SELECT TOP 30 ADate,PathName,FileName,Title FROM title_old WHERE (title LIKE '%û·æ%' AND SubStyle = '¿µÈ') ORDER BY ADate DESC",DbCon Else DbRec.Open "SELECT ADate,PathName,FileName,Title FROM title_old WHERE (title LIKE '%û·æ%' AND SubStyle = '¿µÈ') ORDER BY ADate DESC",DbCon End If //DbRec.Open "SELECT ADate,PathName,FileName,Title FROM title WHERE (title LIKE '%û·æ%' AND SubStyle = '¿µÈ') ORDER BY ADate DESC",DbCon totpage = fix(postcount / ipp) 'Àüü ÆäÀÌÁöÀÇ ¼ö¸¦ ±¸ÇÑ´Ù If (totpage * ipp) <> postcount Then totpage = totpage + 1 End If For a = 1 To (curpage - 1) * ipp DbRec.MoveNext Next %>
![]() |
|||||||||||||||||||
|
|||||||||||||||||||
|
Copyright ¨Ï SPORTSCHOSUN.COM
|
|||||||||||||||||||