标题:各位都来看看,时间太紧了,帮帮忙,哪儿有错?
只看楼主
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



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-4342-1-1.html




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

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