% Option Explicit %> <%On Error Resume Next %> <%Dim bydetail,time,i,messcount,PageNo,TotalRecs, TotalPages Dim x %> <% 'Dim DSN_NAME,Connect,OnDB,Query ' DSN_NAME = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.Mappath("../../fpdb/awamessdb.mdb") & ";" ' ' Set Connect = Server.CreateObject("ADODB.Connection") ' Connect.ConnectionTimeout = 15 ' Connect.CommandTimeout = 30 ' Connect.Open DSN_NAME ' Set OnDB = Server.CreateObject("ADODB.Recordset") %> <% 'Set Connect = Server.Createobject("ADODB.Connection") 'Connect.Open "messdb" 'Set OnDB = Server.CreateObject("ADODB.Recordset") Query = ("SELECT * FROM emaillist") Query = Query & " ORDER BY submitdate DESC" OnDB.Open Query,Connect,3,3 messcount= OnDB.recordcount OnDB.PageSize = 10 TotalPages = CInt(OnDB.PageCount) %>
Subject: | <%=OnDB("subject")%> |
Message: | <%=OnDB("message")%> |
From: | "><%=OnDB("email")%> |
Submitted: | <% =OnDB("submitdate") %> |
" ' we don't want "Previous" on the first page so we'll do this If PageNo > 1 then response.write "" Else response.write " " End If response.write " | " ' we don't want "Next" on the last page so we'll do this If NOT OnDB.eof then response.write "" Else response.write " " End If response.write " |