历年华语金曲奖:这段程序哪里有问题呢?高手帮我看看啊

来源:百度文库 编辑:高校问答 时间:2024/04/28 20:55:33
set rst1=conn.execute("insert into user (u_user,u_code) values ('"& request.form("f_user")& "','" & request.form("f_code")& "')")
谢谢~~~帮我看看啊,急~~

request.form("f_code")& "')")
可能是后面多了个'
最好不要这样。将这个句话分开就好看了。
theuser=request.form("f_user")
thecode=request.form("f_code")
set rst1=conn.execute("insert into user (u_user,u_code) values ('"& theuser & "',"&thecode&" )
这样就好DEBUG了。程序不是越少行代码越好。也要看维护性,所以要找一个尽量完美的结合点!

rst1的对象建立了吗?