| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 763 人关注过本帖
标题:各位都来看看,时间太紧了,帮帮忙,哪儿有错?
只看楼主 加入收藏
honrry
Rank: 1
等 级:新手上路
帖 子:103
专家分:0
注 册:2004-6-2
收藏
 问题点数:0 回复次数:1 
各位都来看看,时间太紧了,帮帮忙,哪儿有错?

<%

dhhm=request.Form("dhhm") gh=request.Form("gh") pwd=request.Form("pwd") sgr=request.Form("sgr") memo01=request.Form("memo") timehd=date()+time()

dhhm=Replace( dhhm, "'", "''" ) gh=Replace( gh, "'", "''" ) pwd=Replace( pwd, "'", "''" ) memo01=Replace( memo01, "'", "''" )

set conn=server.createobject("adodb.connection") conn.Open"Driver={SQL Server};Server=192.168.10.3;UID=honrry;PWD=88888888;"& _ "database=sdsdsd;"

set rs=conn.execute("select * from username where " & "gh = '" _ & gh & "' and " & "Pwd = '" & pwd & "'") if RS.EOF then response.write("工号或密码错! <a href=javascript:history.back()> 返回</a>") rs.close else conn.execute "update [index] set " _ & "timehd='" & timehd & "', " _ & "memo01='" & memo01 & "', " _ & "hdr='" & gh & "', " _ & "sgr='" & sgr & "' " _ & " Where dhhm='" & dhhm &"'" Conn.Close end if response.write("恭喜!<a href=index.asp> 查看</a>")

%>

无语法错,但就是UPDATE不了INDEX表,请各位高手看看??(时间太紧了,帮帮忙。)

搜索更多相关主题的帖子: 时间 
2004-08-17 10:43
griefforyou
Rank: 6Rank: 6
等 级:贵宾
威 望:27
帖 子:3336
专家分:0
注 册:2004-4-15
收藏
得分:0 

没有语法错误那就是逻辑错误?

你不会单步调试吗?


天津网站建设 http://www./
2004-08-17 15:42
快速回复:各位都来看看,时间太紧了,帮帮忙,哪儿有错?
数据加载中...
 
   



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

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