Discuz版块的内容,主要放在cdb_posts这个表中,通过select * from cdb_posts where fid=15 and first=1 and invisible=0即可,其中fid为版块id

Discuz主题分类的内容,要通过cdb_threads和cdb_posts相结合,通过

select * from cdb_threads as a, cdb_posts as b WHERE a.typeid=12 and a.fid=2 and a.tid=b.tid and b.first=1 and b.invisible=0 order by b.tid desc

其中fid为版块id,typeid为主题分类id

相关文章:

  • 2022-01-29
  • 2021-06-01
  • 2021-08-29
  • 2022-02-23
  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2021-09-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2021-10-18
  • 2021-08-29
  • 2022-12-23
相关资源
相似解决方案