帮忙看看了,这个怎么改!

jtnwl 2008-12-29 02:56:20
<%str="select * from user where 用户名=**这应该怎么写Session("login") **" set rs=conn.execute(str)%>

想根据用户的Session("login")判断输入信息

Session("login")应该怎么写呢?
...全文
51 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
jtnwl 2008-12-29
  • 打赏
  • 举报
回复
OK,谢谢!给分
neo_yoho 2008-12-29
  • 打赏
  • 举报
回复
<%
str="select * from user where 用户名='"&Session("login")&"'"
set rs=conn.execute(str)
%>
这个意思?
homel 2008-12-29
  • 打赏
  • 举报
回复
[Quote=引用楼主 jtnwl 的帖子:]
<%str="select * from user where 用户名=**这应该怎么写Session("login") **" set rs=conn.execute(str)%>

想根据用户的Session("login")判断输入信息

Session("login")应该怎么写呢?
[/Quote]
注意你的用户名是什么数据类型
如果是字符型
<%sql="select * from user where 用户名='"&session("login")&"'"
set rs=conn.execute(sql)%>
你的session("login")=rs("")
你的字段值
zjsfdxbao 2008-12-29
  • 打赏
  • 举报
回复

<%str="select * from user where 用户名='" & Session("login") & "'"
set rs=conn.execute(str)%>

28,390

社区成员

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

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