win10红警2全屏:输出记录如何限制做连接?。。。。。小弟急等。。。。。。

来源:百度文库 编辑:高校问答 时间:2024/05/05 20:01:29
请教,我用select * from table 在表格中输出数据库中的记录并做连接,形式如下,<a href="#"><%=rs("title")%></a>,在库中有一个记录我不想让他做连接,应该怎么做???
我的意思不是不让他不输出来,是输出来,不做连接而已...

我来举个例子:
例如 id 5 是你不详做 link的
我可以这样写
<%
if rs("id")=5 then
Response.Write""rs("title")""
else
Response.Write"<a href=""#"">"&rs("title")&"</a>"
end if
%>

这是个思路 也许对你有帮助

<%
if rs("title")="你的条件" then
rs.movenext
end if
%>