%
server.Execute "/NoHACK1.asp"
dim AutoID, P_Name, P_Date, P_Price, P_Adit, P_Data
dim strSQL, rs, Hp, MaxPage, O, P, Q, R, S, Ipage, ToPage
' 前往頁數
ToPage = ReqNum(Request.QueryString("ToPage"))
strSQL = "SELECT AutoID,P_Pic,P_Name,convert(char(10),P_Date,111) as P_Date,P_Price,P_Adit,P_Data from MP_Product where P_Show='Y' order by AutoID desc,P_Date desc"
set rs = GetRecordset(strSQL)
rs.pagesize = 5
Hp = "product.asp"
if ToPage = "" or ToPage = empty then
ToPage = 1
else
ToPage = CInt(ToPage)
end if
MaxPage = rs.PageCount
if ToPage > MaxPage then
ToPage = MaxPage
elseif ToPage < 1 then
ToPage = 1
end if
If not(rs.EOF and rs.BOF) Then rs.AbsolutePage = ToPage
%>
完美世界官方網站