【发布时间】:2011-07-21 18:00:26
【问题描述】:
我正在使用MyBB,我想在我的网站主页上显示当前拥有最多读者的话题。
我假设我必须查询会话表,但我不知道该怎么做
我需要的 mysql 结果应该类似于:
-------------------------
|title | count |
-------------------------
|thread a title | 1234 |
|thread b title | 913 |
|thread c title | 678 |
|another title | 593 |
|different title| 550 |
-------------------------
谢谢你:)
【问题讨论】:
-
session表是什么样的? -
MyBB 有一个
prefix_sessions表,用于存储当前访问者的所有会话及其位置