在 index_board_list.asp 中
热点:
<%
sql3="select top 1 * from BBS_Topic where board_id in ("& this_board_class_2 &") order by replay_count desc"
set rs3=bbsconn.execute(sql3)
if rs3.eof then
%><span class="bbs_board_topic_no">暂无热点</span><%
else
topic_id_hot=rs3("topic_id")
topic_title_hot=rs3("topic_title")
user_id_hot=rs3("user_id")
topic_addtime_hot=rs3("topic_addtime")
user_name_hot=chk_db("BBS_User","user_id",user_id,"user_name") 这里的
user_id 应为 user_id_hot ?
%>