<%@LANGUAGE="VBSCRIPT"%> <% Session.Abandon %> <% Dim rsAdsDetails__MMColParam rsAdsDetails__MMColParam = "0" if(Request.QueryString("nAdID") <> "") then rsAdsDetails__MMColParam = Request.QueryString("nAdID") %> <% set rsAdsDetails = Server.CreateObject("ADODB.Recordset") rsAdsDetails.ActiveConnection = strConn rsAdsDetails.Source = "SELECT * FROM tblAds WHERE nAdID = " + Replace(rsAdsDetails__MMColParam, "'", "''") + "" rsAdsDetails.CursorType = 0 rsAdsDetails.CursorLocation = 2 rsAdsDetails.LockType = 3 rsAdsDetails.Open rsAdsDetails_numRows = 0 %> <% ' *** 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 %> Motorcycle Accessory Centre GoldWing Classifieds
 

 



Displaying Ad Details

Go Back

TITLE <%=(rsAdsDetails.Fields.Item("cTitle").Value)%>
AD ID# <%=(rsAdsDetails.Fields.Item("nAdID").Value)%>
DESCRIPTION <%=(rsAdsDetails.Fields.Item("cDescription").Value)%>
CONTACT <%=(rsAdsDetails.Fields.Item("cContact").Value)%>
CATEGORY: <%=(rsAdsDetails.Fields.Item("cCategory").Value)%> - <%=(rsAdsDetails.Fields.Item("cSubCategory").Value)%>
This Ad has been viewed <%=(rsAdsDetails.Fields.Item("nViews").Value)%> Times

" align="center" width="280" height="180">
<% Dim strRsAds Set strRsAds = Server.CreateObject("ADODB.Recordset") strRsAds.Open "tblAds", strConn, adOpenForwardOnly, adLockOptimistic, adCmdTable strRsAds.Filter = "nAdID = " & Request.QueryString("nAdID") strRsAds("nViews") = strRsAds("nViews") + 1 strRsAds.Update strRsAds.close set strRsAds = Nothing %>

 

 


101, 5701 - 17th Ave. S.E. Calgary, Alberta T2A 0W3
ph (403)248-0988    toll free orders (800)293-6453    fax (403)248-6035
motorcycle.stuff@cia.com
For questions or comments about the website, contact the webmaster.