<% Option Explicit %> <% Response.Buffer = True Dim rsGuestbook 'Database Recordset Variable Dim strName 'Holds the Users name Dim strEmailAddress 'Holds the Users e-mail address Dim strCountry 'Holds the users country Dim strHomepage 'Holds the Users homepage Dim strComments 'Holds the Users comments Dim dtmEntryDate 'Holds the date the commnets where made Dim intRecordPositionPageNum 'Holds the record position Dim intRecordLoopCounter 'Loop counter for displaying the guestbook records Dim intTotalNumGuestbookEntries 'Holds the total number of records in the database Dim intTotalNumGuestbookPages 'Holds the total number of pages in the database Dim intLinkPageNum 'Holds the page number to be linked to If Request.QueryString("PagePosition") = "" Then intRecordPositionPageNum = 1 Else intRecordPositionPageNum = CInt(Request.QueryString("PagePosition")) End If Set rsGuestbook = Server.CreateObject("ADODB.Recordset") strSQL = "SELECT tblComments.* FROM tblComments ORDER BY Date_stamp DESC;" rsGuestbook.CursorType = 3 rsGuestbook.Open strSQL, adoCon rsGuestbook.PageSize = intRecordsPerPage If NOT rsGuestbook.EOF Then rsGuestbook.AbsolutePage = intRecordPositionPageNum %> GuestBook
Home Page A few words about ut What Dwyer's Irish Pub Offers You See our photo gallery What Dwyer's Irish Pub Offers You Sing and see our Guestbook Contact Us