% Dim table,currentPage,flag flag = false currentPage="" currentPage= Trim(Request.QueryString("currentPage")) If(currentPage = "" or currentPage = null) then currentPage = "1" end if counter = 1 startCount = (cInt(currentPage) -1)* 10 session("currentPage") = currentPage 'Response.Write(startCount) Set rsL = Server.CreateObject("adodb.recordset") ' TO DISPLAY THE IMAGE rsL.CursorType = 3 rsL.CursorLocation = 3 rsL.PageSize = 10 sqlL = " Select * from tbl_press order by pdate desc" 'Response.Write(sqlL) rsL.Open sqlL,con recCount = rsL.RecordCount if recCount < 1 then flag = true end if %>
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||