您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

thinkphp这么玩关联查询(实例教会你)

2024/2/18 7:56:27发布23次查看
thinkphp这样玩关联查询(实例教会你)
thinkphp实例,内连接实现多表中同时查找,并存在了一个数组中,返回到模板中,模板中volist遍历即可使用多表中的字段
$row=m()->query(select realname,email,guanzhu,law_friends_follow.id,law_friends_follow.uid,law_friends_follow.followid from law_member left join law_friends_follow on law_member.uid=law_friends_follow.followid where law_member.uid in ($followids) limit .$d->firstrow.','.$d->listrows.;);
以上而且带翻页……
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product