注册 | 登录 |
地方论坛门户及新闻和人才网址大全

Discuz返回附件信息!C::t('forum_attachment')->fetch_all_by_id()

时间:2021-07-21人气:-


  1. C::t('forum_attachment')->fetch_all_by_id('aid', $v['tid'] );

执行上面的代码,会返回对应帖子的附件信息!

  1. Array
  2. (
  3. [1] => Array
  4. (
  5. [aid] => 1
  6. [tid] => 1
  7. [pid] => 1
  8. [uid] => 1
  9. [tableid] => 1
  10. [downloads] => 0
  11. )
  12. )


上篇:discuz商品贴添加自定义字段

下篇:Discuz!-分库一主多从数据库分离-config_glo...