读取数据库里的一个值进行判断
<%sql="select*fromweowherebianhao='"&request("bianhao")&"'"ifdingdanzt<>""then%><scri...
<%
sql="select * from weo where bianhao='"&request("bianhao")&"'"
if dingdanzt<>"" then
%>
<script language="javascript">
alert("该订单已无法修改!")
window.location.href="../index.asp"
</script>
<%
response.end
end if
%> 展开
sql="select * from weo where bianhao='"&request("bianhao")&"'"
if dingdanzt<>"" then
%>
<script language="javascript">
alert("该订单已无法修改!")
window.location.href="../index.asp"
</script>
<%
response.end
end if
%> 展开
展开全部
<%
Dim Conn, Rs, sql, dingdanzt
dingdanzt = ""
sql="select * from weo where bianhao='" & request("bianhao") & "'"
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "改成你的数据库连接字符串"
Set Rs = Server.CreateObject("ADODB.RecordSet")
Rs.Open Sql, Conn, 1,1
If Not(Rs.Eof) Then
dingdanzt = Rs("dingdanzt") '假设dingdanzt是你表中的字段名
End If
Rs.Close
Set Rs = Nothing
Conn.Close
Set Conn = Nothing
If dingdanzt<>"" Then%>
<script language="javascript">
alert("该订单已无法修改!")
window.location.href="../index.asp"
</script><%
response.end
End If
%>
Dim Conn, Rs, sql, dingdanzt
dingdanzt = ""
sql="select * from weo where bianhao='" & request("bianhao") & "'"
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "改成你的数据库连接字符串"
Set Rs = Server.CreateObject("ADODB.RecordSet")
Rs.Open Sql, Conn, 1,1
If Not(Rs.Eof) Then
dingdanzt = Rs("dingdanzt") '假设dingdanzt是你表中的字段名
End If
Rs.Close
Set Rs = Nothing
Conn.Close
Set Conn = Nothing
If dingdanzt<>"" Then%>
<script language="javascript">
alert("该订单已无法修改!")
window.location.href="../index.asp"
</script><%
response.end
End If
%>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询