找个asp师傅

forlovebin 2005-03-28 08:44:54
自学asp好困难啊。想找个会asp高手做我师傅啊,我一定会好好对待师傅地,
我的QQ号:4502933
...全文
113 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
智云说 2005-03-28
  • 打赏
  • 举报
回复
如果字段是字符型的可以
conn.execute ("update [house] set user_standing='"&st&"' where user_name='"&nm&"'")
如果是数值型的
conn.execute ("update [house] set user_standing="&st&" where user_name='"&nm&"'")
注意单引号
超级大笨狼 2005-03-28
  • 打赏
  • 举报
回复
这里有 时间的 人 都 可以 做 你 的老师。
呼呼,别着急。
forlovebin 2005-03-28
  • 打赏
  • 举报
回复
那它再怎么把值赋给下面的呢
<%Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from user where user_name='"&lxr&"' "
rs.open sql,conn,3,2
rs("user_standing")=Cint(rs("user_standing"))+1
rs.update
nm=rs("user_name")
st=rs("user_standing")
rs.close
%>
<% set rs=server.createobject("adodb.recordset")
conn.execute ("update [house] set user_standing='"&st&"' where user_name='"&nm&"'")
rs.close
%>
fyxw 2005-03-28
  • 打赏
  • 举报
回复
我也想找,不过自己写个东西会更让你明白很多知识的
lstup 2005-03-28
  • 打赏
  • 举报
回复
rs("user_standing")=rs("user_standing")+1
我的user_standing是数字型的,但却不能累加
要把它定义成什么样的才行呢?

======================
rs("user_standing")=Cint(rs("user_standing"))+1
lstup 2005-03-28
  • 打赏
  • 举报
回复
开工资没。
forlovebin 2005-03-28
  • 打赏
  • 举报
回复
rs("user_standing")=rs("user_standing")+1
我的user_standing是数字型的,但却不能累加
要把它定义成什么样的才行呢?
雨谦飞扬 2005-03-28
  • 打赏
  • 举报
回复
我也想,而且找到了,就是CSDN和别人做好的网页源码。
多看看别人的源码能学到不少东西。

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧