asp代码解析

2024-12-21 12:02:27
推荐回答(3个)
回答1:

set rs=server.createobject("adodb.recordset")
sql="select * from bbs"
rs.open sql,conn,1,3
rs.addnew
rs("title")=title
rs("layer")=layer
rs("parent_id")=parent_id
rs("child")=child
rs("hits")=hits
rs("ip")=ip
rs("uaer_name")=uaer_name
rs("submit_date")=date()
rs.update

回答2:

不知你想要怎样的写法:

rs=conn.open "select * from bbs",1,3
rs.addnew
rs("title")=title
rs("layer")=layer
rs("parent_id")=parent_id
rs("child")=child
rs("hits")=hits
rs("ip")=ip
rs("user_name")=user_name
rs("submit_date")=date()
if body<>"" then
rs("body")=body
end if
rs.update

回答3:

<%
rs=conn.open "select * from bbs",1,3
rs.addnew
rs("title")=title
rs("layer")=layer
rs("parent_id")=parent_id
rs("child")=child
rs("hits")=hits
rs("ip")=ip
rs("user_name")=user_name
rs("submit_date")=date()
if body<>"" then
rs("body")=body
end if
rs.update
%>