<%
set rs1 = Server.CreateObject("ADODB.Recordset")
sql="select * from Account_Info where cAccName = '"&account&"'"
rs1.open sql,conn ,1,1
if not rs1.eof then
response.write "<script language=JavaScript>" & chr(13) & "alert('Ten account nay da co nguoi chon !\nHay chon account khac.');" & "history.back()" & "</script>"
else
set rs2 = Server.CreateObject("ADODB.Recordset")
sql="INSERT INTO Account_Info (cAccName,cPassWord,cSecPassword,cRealName,cArea,cIDNum,dRegDate,cPhone,cQuestion,cAnswer,cSex,cEMail,iClientID,cDegree) VALUES ('"&account&"','"&pass&"','"&pass&"','"&realname&"', '"&area&"','"&idnum&"','1/1/2005','"&phone&"','"&question&"','"&answer&"','"&sex&"','"&email&"','0','0')"
Set rs2 = conn.Execute(sql)
set rs3 = Server.CreateObject("ADODB.Recordset")
sql="INSERT INTO Account_Habitus (cAccName,iFlag,iLeftSecond,nExtPoint,iLeftMonth,dEndDate) VALUES ('"&account&"','0','999','999','999','1/1/2010 10:10:23 AM')"
Set rs3 = conn.Execute(sql)
end if
%>
老是提示说Set rs2 = conn.Execute(sql) 这句不对。
[求助]这段代码到底那里有错?