各位哥哥姐姐,帮我看看代码吧!!
这是怎么回事啊? 运行: <% dim tim tim=now set conn=server.createobject("adodb.connection") conn.open "driver={microsoft access driver (*.mdb)};dbq="&server.mappath("wzdb.mdb") name=request.form("textfield1") writer=request.form("textfield2") mytype=request.form("wztype") neirong=request.form("textarea")
exec="insert into wenzhang(name,writer,wztype,neirong,nowtime)values('"+name+"','"+writer+"','"+mytype+"','"+neirong+"','+now+')" conn.execute exec conn.close set conn=nothing response.write "记录添加成功!" response.redirect "view.asp" %> 结果:
2005-7-15 下午 11:33:39 |
文章:guoyuan |
作者:guoyuan |
类型:散文 |
内容:http://www.bc-cn.net/bbs/list.asp?boardID=10http://www.bc-cn.net/bbs/list.asp?boardID=10http://www.bc-cn.net/bbs/list.asp?boardID=10http://www.bc-cn.net/bbs/list.asp?boardID=10http://www.bc-cn.net/bbs/list.asp?boardID=10 |
时间: |