%@ CodePage=65001 %>
<% call connect() %>
<%
id=Replace(Trim(Request.QueryString("id")),"'","''")
if not isnumeric(id) then
response.Redirect("index.asp")
end if
'********************************************
'FOR CATEGORY TITLE
'********************************************
sql = "SELECT C.id as CategoryID,C.categoryname FROM product_category C , products P where C.id=P.categoryid and P.categoryid<>4 and P.id=" & id
set rs_category=cnn.execute(sql)
if not rs_category.eof then
categoryname=StrReplace(rs_category("categoryname"))
CategoryId=rs_category("categoryname")
end if
set rs_category=nothing
'********************************************
'FOR PRODUCT DETAILS
'********************************************
sql = "SELECT * FROM products where id="& id
set rs_product=cnn.execute(sql)
%>