布朗博士吸管奶瓶:aspif语句

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/04 12:07:06
<%if session ("username")="" then%>
<!--#include file="fwqlb.asp"-->
<%else%>
<%
set rs=server.createobject("adodb.recordset")
sql="select Flag from Dv_User where UserName='"& session("username") &"'"
rs.open sql,conn,1,1
%>

<%
if rs("Flag")="2" then
%>
<!--#include file="ServerDPrice.asp"-->
<%
elseif rs("Flag")="3" then %>
<!--#include file="fwqlb.asp"-->
<%
else
%>
<!--#include file="DLPrice.asp"-->
<%end if%>
<%end if%>
<%if request.QueryString("action")="" then%>
<!--#include file="fwqlb.asp"-->
<%end if%>
<%if request.QueryString("action")="sousuo" then%>
<!--#include file="fwqss.asp"-->
<%end if%>
<%if request.QueryString("action")="leibiao" then%>
<!--#include file="fwqlb.asp"-->
<%end if%>

rs("Flag")="2"................

你的FLAG字段是文本形的?
还是整型的.
整型的只要
rs("Flag")=2