注册 登录
编程论坛 ASP技术论坛

输出的CompanyName 多个,我想让其显示一个如何写代码

web1269 发布于 2011-11-23 15:52, 512 次点击

~~~~~~~~~~~~~
<%
    Set Rs = server.createobject("ADODB.Recordset")
    TodayDate = Qsite.FormatDate(Date())
    strIsLockId = IsLockId("Company")
    Sql = "select top "& Qsite.IndNewzp &"  * from RecruitTbl where IsPause = '0' and ComId not in ("& strIsLockId &") order by EditDate desc"
    Rs.Open Sql , Conn , 1 , 1
If rs.eof and rs.bof then
response.write "<p align='center'><font color='#ff0000'>暂无相关内容</font></p>"
else
%>

<%=Company_Name(Rs("ComId"))%>

~~~~~~~~~
1 回复
#2
wangjy5002011-11-26 21:53
这个本来就应该显示一个的吧。
你又没循环
1