求救,找了半天没找到原因
在储存数据库里之后会生成一倍的记录,大家帮我看看是什么原因引起的.
<%
OrderID=request.form("OrderID")
set rs=server.createobject("adodb.recordset")
sql="select * from SyTourists where (TourID is null)"
rs.open sql,conn,1,3
for i=1 to request.form("totalid").count
TourName=replace(request.form("TourName")(i),"'","")
Identity=replace(request.form("Identity")(i),"'","")
TourTel=replace(request.form("TourTel")(i),"'","")
sex=replace(request.form("sex")(i),"'","")
IsChild=replace(request.form("IsChild")(i),"'","")
rs.addnew
rs("OrderID")=OrderID
rs("TourName")=TourName
rs("Identity")=Identity
rs("TourTel")=TourTel
rs("sex")=sex
rs("IsChild")=IsChild
rs.update
next
rs.close
set rs=nothing
conn.close
set conn=nothing
%>