<%
if <%=SQL(3,i)%> = 1 then response.write("支付宝")
else if <%=SQL(3,i)%>= 2 response.write("网银")
end if
%>
这段代码该怎么写啊?
SQL(3,i)是从数据库读出来的一个数值,我想实现的是{
值为1的时候输出“支付宝”字符串
值为2的时候输出“网银”字符串
}
另外读取数据库的值必须采用<%=SQL(3,i)%>这种方式
我是菜鸟谢谢大侠帮忙了!
if <%=SQL(3,i)%> = 1 then response.write("支付宝")
else if <%=SQL(3,i)%>= 2 response.write("网银")
end if
%>
这段代码该怎么写啊?
SQL(3,i)是从数据库读出来的一个数值,我想实现的是{
值为1的时候输出“支付宝”字符串
值为2的时候输出“网银”字符串
}
另外读取数据库的值必须采用<%=SQL(3,i)%>这种方式
我是菜鸟谢谢大侠帮忙了!
if SQL(3,i) = 1 then response.write("支付宝")
else if SQL(3,i)= 2 response.write("网银")
end if
%>
Microsoft VBScript 编译器错误 错误 '800a03fc' 缺少 'Next' /User/User_PayLog.asp,行 139 else if SQL(3,i)= 2 response.write("网银")
这一块的代码是这样的<%'ID,userid,username,PayDate,Paytype,PayAmount,StartDate,FinishDate,Trade_no,
For i=0 to Ubound(SQL,2)%>
<tr align="center" class="tdbg" onMouseOut="this.className='tdbg'" onMouseOver="this.className='tdbg2'">
<td width="30" align="center"><input name="ID" type="checkbox" onClick="unselectall()" id="ID" value="<%=SQL(0,i)%>"></td>
<td width="60" align="center"><a href="User_PayLog.asp?userID=<%=SQL(1,i)%>"><%=SQL(1,i)%></a></td>
<td width="120" align="center"><%=SQL(5,i)%></td>
<td width="60" align="center"><font color="red"><%
if SQL(3,i) = 1 then response.write("支付宝")
else if SQL(3,i)= 2 response.write("网银")
end if
%>支付</font></td>
<td width="40" align="center"><font color="red"><%=SQL(4,i)%>元</font></td>
<td width="120" align="center"><%=SQL(8,i)%></td>
<td width="120" align="center"><%=SQL(6,i)%></td>
<td width="120" align="center"><%=SQL(7,i)%></td>
</tr>
<%Next%>
</table>
<%
Response.write Cl.ShowPage(FileName,TotalPut,PageSize,"个","记录")
SQL=Empty