thinkphp循环查询A表的数据,怎么用A表的ID查询出B表的数据,怎么把B表的数据加入循环并且view展示出来
程序员文章站
2022-05-25 19:23:02
...
回复内容:
foreach ($six_month as $k => $v) {
$six_upload = $upload->where("month_id={$vo['id']}")->find();
$six_month[$k]['upload'] = $six_upload;
}
$this->assign('six_month', $six_month);
上一篇: WAMP环境中扩展oracle函数库(oci)_PHP
下一篇: PHP截取html字符串有关问题