<% Dim x, e: If Request.QueryString("Product") <> "" then
sql = "SELECT * FROM Products WHERE ID = '" & Request.Querystring("Product") & "'"
set rs = db.execute(sql)
If Not rs.eof and not rs.bof then
If isnull(rs("Name")) and isnull(rs("Image")) or trim(rs("Name")) = "No Name" and trim(rs("Image")) = "No Image" then %>
|
|
<% ElseIf isnull(rs("Name")) or trim(rs("Name")) = "No Name" then %>
|
|
<% ElseIf isnull(rs("Image")) or trim(rs("Image")) = "No Image" then %>
|
|
<% Else %>
|
|
<% End If
End If %>
|
|
<% ElseIf Request.QueryString("SubCategory") <> "" then
sql = "SELECT * FROM Products WHERE SubCategory = " & Request.QueryString("SubCategory") & " ORDER BY ID"
set rs = db.execute(sql) %>
|
<% x =1: Do until rs.eof %><% x = x + 1: rs.movenext: Loop
If rs.eof and rs.bof then %> Empty <% End If %>
|
|
|
<% ElseIf Request.QueryString("Category") <> "" then
sql = "SELECT * FROM SubCategories WHERE Category = " & Request.Querystring("Category") & " ORDER BY ID"
set rs = db.execute(sql): If rs.eof and rs.bof then E = True %>
<% Do until rs.eof %>
| ><%=rs("Name")%> |
<%=rs("Description")%> |
<% rs.movenext: Loop %>
|
<% sql = "SELECT * FROM Products WHERE Category = " & Request.Querystring("Category") & " ORDER BY ID"
set rs = db.execute(sql) %>
<% If E <> True and not rs.eof and not rs.bof then %>
<% End If: if not rs.eof and not rs.bof then E = False
x =1: Do until rs.eof %><% x = x + 1: rs.movenext: Loop
If E = True then %>Empty <% End If %>
|
|
|
<% Else
sql = "SELECT * FROM Categories ORDER BY ID"
set rs = db.execute(sql) %>
|
|
Our
Products |
We have a wide variety of computer systems, servers, peripherials and components available. If you have any questions please e-mail us at rpeltz@rspconsulting.net
|
|
<% Do until rs.eof %>
| ><%=rs("Name")%> |
<%=rs("Description")%> |
<% rs.movenext: Loop %>
|
|
|
<% End If %>