大家帮我看看这个文件哪条语句错了!
情绝书生 2004-01-04 02:32:46 <%@ LANGUAGE="VBSCRIPT" %>
<!--#include file="util.asp" -->
<!--#include file="conn.asp" -->
<%
ProductList = Session("ProductList")
response.write"ProductList"
Products = Split(Request("cpbm"), ", ")
response.write"Products"
For I=0 To UBound(Products)
PutToShopBag Products(I), ProductList
Next
Session("ProductList") = ProductList
response.write"Products(I)"
response.write"ProductList"
Head="以下是您所选购的物品清单"
ProductList = Session("ProductList")
If Len(ProductList) =0 Then
Response.Redirect "nothing.asp"
response.end
end if
If Len(ProductList) = 0 Then
Response.Redirect "nothing.asp"
response.end
end if
set rs=server.createobject("adodb.recordset")
sql = "Select * From flowmanage Where id In (" & ProductList & ")"
rs.open sql,conn,1,1
%>
<%Do While Not rs.EOF%>
........................
<%
rs.MoveNext
Loop
%>
//util文件
<%
Sub PutToShopBag( cpbm, ProductList )
If Len(ProductList) = 0 Then
ProductList = "'" & cpbm & "'"
ElseIf InStr( ProductList, cpbm ) <= 0 Then
ProductList = ProductList & ", '" & cpbm & "'"
End If
End Sub
%>