asp中如何判断字符串相等
<%response.Buffer=-1response.Charset="gbk"setrs=server.createobject("adodb.recordset"...
<%
response.Buffer=-1
response.Charset="gbk"
set rs=server.createobject("adodb.recordset")
str="select * from YouHui where yID='"&request("yID1")&"'"
rs.open str,conn,1,3
if not rs.eof then
if request("yID1")=rs("yID") then
response.write "您的优惠券编号重复!"
end if
end if
rs.close
set rs=nothing
%> 展开
response.Buffer=-1
response.Charset="gbk"
set rs=server.createobject("adodb.recordset")
str="select * from YouHui where yID='"&request("yID1")&"'"
rs.open str,conn,1,3
if not rs.eof then
if request("yID1")=rs("yID") then
response.write "您的优惠券编号重复!"
end if
end if
rs.close
set rs=nothing
%> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询