www.gusucode.com > cso中国seo优化html整站源码程序 > ajax/comment.asp

    <!--#include file="../include/conn.asp"-->
<%
response.ContentType = "text/html;charset=gb2312"
nid = request("nid")
%>
<div class="title"><h2>全部评论</h2></div>
<%
sql = "select * from so_feed where reg = 1 and aid = "&nid&" order by id desc"
rs.open sql,conn,1,1
if rs.eof then
%>
	<div class="box_cmt"><b>暂无内容!</b></div>
<%
else
do while not rs.eof
%>
	<div class="box_cmt">
		<h3><strong><%=rs("username")%></strong>在<%=rs("datestr")%>说:</h3>
		<div class="content"><%=rs("content")%></div>
		<%if rs("admin_content") & "*" <> "*" then%>
		<blockquote>
			<h3>管理员<%=rs("admin_datestr")%>回复</h3>
			<div class="content"><%=rs("admin_content")%></div>
		</blockquote>
		<%end if%>
	</div>
<%
rs.movenext
loop
end if
rs.close
%>