Read the latest 5 can not comment on why the reverse?
I would like to show that only 5 of the latest comments, the following code to display 5, but not the reverse, if the order by id desc, although the reverse order, but all show up, take a look at how can we help by reverse 5 comments show
<%
response.write “”
response.write “”
call rank ()
rs.close
response.write “”
'/ / user comments
rs.open “select top 5 * from news where id =” & id & “and audit = 1”, conn, 1,1
if rs.eof and rs .bof then
response.write “
”
else
do while not rs.eof
%>
Leave a Reply
You must be logged in to post a comment.