还是不行诶,我是想把这个表格
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
<%
set rs=server.CreateObject("adodb.recordset")
sql="select * from product where tj=1 "
sql=sql & " "&sqlpaixu&""
'response.Write(""&sql&"")
rs.open sql,conn,1,1
cc=0
do while not rs.eof
%>
<%
set rs_class=server.CreateObject("adodb.recordset")
sql="select a.id id,a.title title,b.class_1 class_1 from product a,class_1 b where tj=1 a.category_id=b.id"
sql=sql & " "&sqlpaixu&""
rs.open sql,conn,1,1
cc=0
do while not rs.eof
response.write("<a href='ppp.asp>id="&rs("id")&"'>["&rs("class_1")&"]"&rs("title")&"</a>")
%>
<tr>
<td width="110" height="110" align="center"><a href="eProductsearch.asp?id=<%=rs("category_id")%>"><img src="../<%=rs("p_pic")%>" width="100" height="100" border="0" align="absmiddle" /></a></td>
<td width="453" style="line-height:150%"><p><%=rs_class("eclass_1_name")%></p>
<p><span class="STYLE11">Item
NO:</span><span class="STYLE4"><%=rs("product_id")%> <br>
</span><span class="STYLE11">Name:</span><span class="STYLE4"><%=rs("eProduct_Name")%> </span><span class="STYLE11"><br>
Quantity:</span><span class="STYLE4"><%=rs("sl")%></span></p></td>
</tr>
<%
cc=cc+1
rs.movenext
if cc=6 then exit do
loop
rs.close
set rs=nothing%>
</table>
循环,在它右边的产品详细介绍上面显示它的类别,可是刚试了下,还是没出现我要的效果