$reward = Reward::where('goods_uid', $all['goods_id'])->select()->toArray();
$dataname=[];//这里就是查询出来的数据
$i=0;
foreach($reward as $key=>$it){
$user = User::where('openid', $it['openid'])->field('nickName')->select()->toArray();
foreach ($user as $key1=>$it1){
$dataname[$i] = $it1;
$i++;
}
}
php 数组查询数据库多条
最新推荐文章于 2023-02-20 17:53:44 发布