<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <%id1=request("id") if id1="" then response.Redirect("product.asp?id=2&page=1&key1=1&type=Chinese%20Granite") end if %> <% set rs=Server.CreateObject("ADODB.recordset") id=request("id") indextitle="select * from type where typeid="&id rs.open indextitle, conn,1,1 title=rs("title") gjc=rs("gjc") ms=rs("ms") rs.close set rs=nothing %> <%response.Write(title)%> <%if request("id")>0 then%> <% set rs=Server.CreateObject("ADODB.recordset") wid="select * from type where typeid="&request("id") rs.open wid,conn,1,1 text=rs("description") %> <%end if%>
<%conn.close set conn=nothing %>