<%@LANGUAGE="VBSCRIPT"%> <% Dim rs__MMColParam rs__MMColParam = "1" If (Request.QueryString("articleid") <> "") Then rs__MMColParam = Request.QueryString("articleid") End If %> <% Dim rs Dim rs_cmd Dim rs_numRows Set rs_cmd = Server.CreateObject ("ADODB.Command") rs_cmd.ActiveConnection = MM_worcs_hjpugh_STRING rs_cmd.CommandText = "SELECT * FROM articles WHERE articleid = ?" rs_cmd.Prepared = true rs_cmd.Parameters.Append rs_cmd.CreateParameter("param1", 5, 1, -1, rs__MMColParam) ' adDouble Set rs = rs_cmd.Execute rs_numRows = 0 %> <% Dim Repeat1__numRows Repeat1__numRows = 25 Dim Repeat1__index Repeat1__index = 0 rs_numRows = rs_numRows + Repeat1__numRows %> <% ' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters ' create the list of parameters which should not be maintained MM_removeList = "&index=" If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "=" MM_keepURL="":MM_keepForm="":MM_keepBoth="":MM_keepNone="" ' add the URL parameters to the MM_keepURL string For Each Item In Request.QueryString NextItem = "&" & Item & "=" If (InStr(1,MM_removeList,NextItem,1) = 0) Then MM_keepURL = MM_keepURL & NextItem & Server.URLencode(Request.QueryString(Item)) End If Next ' add the Form variables to the MM_keepForm string For Each Item In Request.Form NextItem = "&" & Item & "=" If (InStr(1,MM_removeList,NextItem,1) = 0) Then MM_keepForm = MM_keepForm & NextItem & Server.URLencode(Request.Form(Item)) End If Next ' create the Form + URL string and remove the intial '&' from each of the strings MM_keepBoth = MM_keepURL & MM_keepForm if (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1) if (MM_keepURL <> "") Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1) if (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1) ' a utility function used for adding additional parameters to these strings Function MM_joinChar(firstItem) If (firstItem <> "") Then MM_joinChar = "&" Else MM_joinChar = "" End If End Function %> <% If Not rs.EOF Or Not rs.BOF Then %> <%=(rs.Fields.Item("headline").Value)%> | Pughs Estate Agents, Ledbury <% End If ' end Not rs.EOF Or NOT rs.BOF %> <% If rs.EOF And rs.BOF Then %> Article no longer in the database | Pughs Estate Agents, Ledbury <% End If ' end rs.EOF And rs.BOF %>

Latest News

<%= DoDateTime((rs.Fields.Item("dateadded").Value), 1, 2057) %>

<%if rs("photograph") <> "" THEN%> " hspace="10" border="0"> <%end if%>

<%=(rs.Fields.Item("headline").Value)%>

<% Response.Write Replace(rs("fullarticle"), vbCrLf, "
") %>

< Back to Latest News

<% rs.Close() Set rs = Nothing %>