主题:急急!!!ASP测试显示不能操作.请高手来看看!!!!
dim txtauthor,txtcontent,rst,ssql
set rst=server.CreateObject("adodb.Recordset")
rst.open "select * from lyb",cnn,1,3
RSt.MOVENEXT
txtauthor = trim (rst("txtauthor"))
txtcontent =trim (rst("txtcontent"))
ssql="insert into lyb(txtauthor,txtcontent) values('" & txtauthor &"','" & txtcontent &"')"
cnn.execute ssql, ,adcmdtext.
我要写的是一个留言簿.
只要把填写的内容在同一个页显示就可以了
请问能不能不经过数据库呢?
那应该怎么做呢
set rst=server.CreateObject("adodb.Recordset")
rst.open "select * from lyb",cnn,1,3
RSt.MOVENEXT
txtauthor = trim (rst("txtauthor"))
txtcontent =trim (rst("txtcontent"))
ssql="insert into lyb(txtauthor,txtcontent) values('" & txtauthor &"','" & txtcontent &"')"
cnn.execute ssql, ,adcmdtext.
我要写的是一个留言簿.
只要把填写的内容在同一个页显示就可以了
请问能不能不经过数据库呢?
那应该怎么做呢