标题:各位都来看看,时间太紧了,帮帮忙,哪儿有错?
取消只看楼主
honrry
Rank: 1
等 级:新手上路
帖 子:103
专家分:0
注 册:2004-6-2
 问题点数:0 回复次数:0 
各位都来看看,时间太紧了,帮帮忙,哪儿有错?

<%

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



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




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

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