| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 483 人关注过本帖
标题:Update 更新数据问题
只看楼主 加入收藏
byeweimin
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2005-11-11
收藏
 问题点数:0 回复次数:3 
Update 更新数据问题
<!--#include file="../inc/admin.inc"-->
<%if request("isaudit")="ok" then
sql="update company set index=1"' where id=" & cstr(request("id"))
conn.execute sql
end if%><% if request("isaudit")="cancel" then
sql="update company set index=0"' where id=" & cstr(request("id"))
conn.execute sql
end if%>
<%if rs("index")=1 then %> <a href="mcompany.asp?id=<%=rs("id")%>&isaudit=cancel">
取消审核</a>&nbsp
<% else %>
<a href="mcompany.asp?id=<%=rs("id")%>&isaudit=ok">
通过审核</a>&nbsp
<%end if%>
搜索更多相关主题的帖子: Update 数据 
2005-11-11 00:20
byeweimin
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2005-11-11
收藏
得分:0 

一审核整个表内的全被审核了.郁闷.

2005-11-11 00:23
盖茨他爹
Rank: 6Rank: 6
等 级:贵宾
威 望:28
帖 子:5255
专家分:0
注 册:2005-5-3
收藏
得分:0 
sql="update company set index=1"' where id=" & cstr(request("id"))
改成
sql="update company set index=1 where id=" & cstr(request("id"))

中间还加那两个引号干什么
2005-11-11 01:09
byeweimin
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2005-11-11
收藏
得分:0 
谢谢.的确如此,谢谢啦
2005-11-11 08:14
快速回复:Update 更新数据问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.025610 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved