<%
rs.open "SELECT * FROM Products where ProductCode='" & prodcode & "'",DBConn,1,3
if not rs.eof then
%>
Click to view categories
Shop by brand:
<%
rs2.open "SELECT distinct Brand FROM Products",DBConn,1,3
do while not rs2.eof
if rs2("Brand")<>"" then
qstr = "?brand=" & Server.URLEncode(rs2("Brand"))
end if
%>
<% if Brand = rs2("Brand") then %>
- <%=rs2("Brand")%>
<% else %>
- <%=rs2("Brand")%>
<% end if %>
<%
rs2.movenext
loop
rs2.close
%>
Shop by style:
<%
For j = 1 to 5
select case j
case 1: aStyle = "Fairy"
case 2: aStyle = "Punk"
case 3: aStyle = "Gothic"
case 4: aStyle = "Lolita"
case 5: aStyle = "Mori"
end select
qstr = "?myStyle=" & aStyle
%>
<% if myStyle = aStyle then %>
- <%=aStyle%>
<% else %>
- <%=aStyle%>
<% end if %>
<%
next
%>
Shop by item type:
<%
rs2.open "SELECT distinct Category FROM Products",DBConn,1,3
do while not rs2.eof
if rs2("Category")<>"" then
qstr = "?Category=" & Server.URLEncode(rs2("Category"))
end if
%>
<% if Category = rs2("Category") then %>
- <%=rs2("Category")%>
<% else %>
- <%=rs2("Category")%>
<% end if %>
<%
rs2.movenext
loop
rs2.close
%>
<%
end if
rs.close
%>