set rs1= server.CreateObject("adodb.recordset")
sql1 = "select * from Products where M_id in "&m
'response.Write sql
rs1.open sql1,MM_Coon_STRING,1,1
for m=1 to rs1.recordcount '进行第二个表的循环
'以下是表格,开始循环…………
%>
<tr>
<td align="center" valign="middle"><img src="<%=rs1("M_Foto")%>" width="30" height="30" /></td>
<td align="center" valign="middle"><a href="../admin/Productdetail.asp?id=<%=rs("M_id")%>"><%=rs("M_Itemno")%></a></td>
<td align="center" valign="middle"><%=rs1("M_Description")%></td>
<td align="center" valign="middle"><%=rs("M_quantity")%></td>
<td align="center" valign="middle"><%=rs1("M_Unit")%></td>
<td align="center" valign="middle"><%=rs1("M_RMBPrice")%></td>
<td align="center" valign="middle"> </td>
<td align="center" valign="middle"><%=rs1("M_Master")%></td>
<td align="center" valign="middle"><%=(rs1("M_Master")*rs("M_quantity"))%></td>
<td align="center" valign="middle"><%=rs1("M_L")%>*<%=rs1("M_W")%>*<%=rs1("M_H")%></td>
<td align="center" valign="middle"><%=rs1("M_Cbm")%></td>
<td align="center" valign="middle"><%=rs1("M_Cbm")*rs("M_quantity")%></td>
<td align="center" valign="middle"></td>
</tr>
<%
rs1.monenext
next
rs.movenext