%@ Language=VBScript %> <% sql = "select * from tblGuestbook order by SubmitDate desc" set PPConn = server.createobject("adodb.connection") PPConn.Open "DBQ=" & Server.Mappath("../db/patrickpearse") & ";Driver={Microsoft Access Driver (*.mdb)};" 'PPConn.open "patrickpearsedb","","" Set GUESTBOOK_rs = Server.CreateObject("ADODB.Recordset") GUESTBOOK_rs.open sql, PPConn, adOpenStatic %>
| Click here to Post a Message | ||
| This is not a place for Advertisments or Political statements. We reserve the right to remove any Guestbook posting! | ||
| Name: | <%=GUESTBOOK_rs("Name")%> | |
| Email: | <%=GUESTBOOK_rs("Email")%> | |
| From: | <% if GUESTBOOK_rs("City") <> "" then %> <%=GUESTBOOK_rs("City")%>, <% end if %> <% if GUESTBOOK_rs("State") <> "" then %> <%=GUESTBOOK_rs("State")%> <% end if %> <% if GUESTBOOK_rs("Country") <> "" then %> <%=GUESTBOOK_rs("Country")%> <% end if %> | |
| Posted: | <%=strPosted%> | |
| Comment: | <%=GUESTBOOK_rs("Comment")%> | |