1.G_CONN.execute "insert into 部门管理员 (adminname,adminpwd,adminpurview) values ('" & Replace(strAdminName,"'","''") & "','" & Replace(strAdminPwd,"'","''") & "'," & intAdminPurview & ")"
2. G_CONN.execute "insert into 部门管理员(coursename) values('" & strCoursename & "')"
这样可以插入记录,可是不在同一行插入,第一句在上一行,而第二句在下一行,于是重新写如下
Microsoft VBScript 编译器错误 错误 '800a0401'
语句未结束
/ww/my/admin_admin.asp,行 261
1.G_CONN.execute "insert into 部门管理员 (adminname,adminpwd,adminpurview,coursename) values ('" & Replace(strAdminName,"'","''") & "','" & Replace(strAdminPwd,"'","''")"'," & intAdminPurview &,'"&strCoursename&"')"
-------------------------------------------------------------------------------------------------------------------------------------------------------------^
2. G_CONN.execute "insert into 部门管理员 (adminname,adminpwd,adminpurview,coursename) values ('" & Replace(strAdminName,"'","''") & "','" & Replace(strAdminPwd,"'","''")"'," & intAdminPurview &",'"&strCoursename&"')"
-------------------------------------------------------------------------------------------------------------------------------------------------------------^
3.G_CONN.execute "insert into 部门管理员 (adminname,adminpwd,adminpurview,coursename) values ('" & Replace(strAdminName,"'","''") & "','" & Replace(strAdminPwd,"'","''")"'," & intAdminPurview &",'"&strCoursename &'")"
-------------------------------------------------------------------------------------------------------------------------------------------------------------^
4.G_CONN.execute "insert into 部门管理员 (adminname,adminpwd,adminpurview,coursename) values ('" & Replace(strAdminName,"'","''") & "','" & Replace(strAdminPwd,"'","''")"'," & intAdminPurview &",'"&strCoursename &"'")"
可是不论输入哪一句都会出现上述错误,请懂给看看改改谢谢