桃仁红花煎药物药量:各位高手教教我这句ASP语句哪里错了啊?

来源:百度文库 编辑:高考问答 时间:2024/05/06 07:52:13
<p><%if not rs.eof then response.Write"<a href=liuyan.asp?id="&rs("id")&">查看留言</a>"</p>

不知道哪里错了。就卡在这里,急。

<p><%if not rs.eof then response.Write"<a href=liuyan.asp?id="&rs("id")&">查看留言</a>"%></p>
就是少一个"%>"结束符号

response.Write "<a href='liuyan.asp?id="&rs("id")&"'>查看留言</a>"</p>
应该是这样吧

<p>
<%if not rs.eof then
response.Write"<a href=liuyan.asp?id="&rs("id")&">查看留言</a>"
end if
%>
</p>
如果id是数字应该这样:
<p>
<%if not rs.eof then
response.Write"<a href=liuyan.asp?id='"&rs("id")&"'>查看留言</a>"
end if
%>
</p>