%@ LANGUAGE = "VBScript" %> <% productid=valid_sql(request.querystring("productid")) if productid=null or productid="" or not(isnumeric(productid)) then response.redirect("error.asp?msg=" & Server.URLEncode("We have no record of the product you are looking for.")) end if 'get the relevant products details set rsprod=db.execute("SELECT * FROM products INNER JOIN categories ON products.catcode = categories.catcode WHERE productid = " & productid) if rsprod.eof then response.redirect("error.asp?msg=" & Server.URLEncode("We have no record of the product you are looking for.")) end if if request.querystring("wish")="add" then WISHLIST_add(productid) end if 'get names and codes of all products in that category set rscatlist=db.execute("select name,productid from products where catcode=" & rsprod("catcode") & " order by name") %>
|
<%= rsprod("catname") %>
<% 'Display list of other products in category if not rscatlist.eof then rscatlist.movefirst while not rscatlist.eof %> "><%=rscatlist("name")%> <% rscatlist.movenext wend end if %> |
<% = rsprod("image") %> |
<%= rsprod("name") %>
<%= rsprod("description") %>
<% if not(WISHLIST_element(rsprod("productid"))) then %>
&wish=add">
<% end if %>
|