
|
|
<%If Request.QueryString("L")="T" Then
Sel="SELECT ProductID,txtProduct,txtTeaser FROM Products WHERE nCatID=" & CatID
rs.Open Sel,DB,1,3
If rs.EOF then%>
There is currently no New Equipment available in this category. Please check back soon!! |
<%Else%>
|
<%End If
ElseIf Request.QueryString("LM")="T" Then
Sel="SELECT ProductID,txtProduct,txtTeaser FROM Products WHERE txtManufacturer='" & txtMandb & "'"
rs.Open Sel,DB,1,3
If rs.EOF then%>
|
There is currently no New Equipment available from this Manufacturer. Please check back soon!! |
<%Else%>
|
<%End If
ElseIf Request.QueryString("LK")="T" Then
Sel="SELECT DISTINCT ProductID FROM Products WHERE txtProduct LIKE '%" & txtKey & "%' OR txtDescription LIKE '%" & txtKey & "%' OR txtManufacturer LIKE '%" & txtKey & "%' OR txtTeaser LIKE '%" & txtKey & "%' OR ProductID IN (SELECT nProductID FROM P_Specs WHERE txtSpecification LIKE '%" & txtKey & "%')"
rs.Open Sel,DB,1,3
If rs.EOF then%>
|
Sorry - your search returned 0 results. Try another keyword or search method.
<%Else%>
|
<%Set pr=Server.CreateObject("ADODB.Recordset")
While Not rs.EOF
Sel="SELECT txtProduct, txtTeaser FROM Products WHERE ProductID=" & rs("ProductID")
pr.Open Sel,DB,1,3%>
" title="Click here to view the details of <%=pr("txtProduct")%>"> |
<%=Highlighter(pr("txtProduct"),txtKey)%>
<%=Highlighter(pr("txtTeaser"),txtKey)%> |
| |
<%pr.Close
rs.MoveNext
Wend
rs.Close%>
<%End If%>
<%End If%>
|