$list = $money_num -> where($name)->limit($Page->firstRow.','.$Page->listRows)->select();
foreach($list as $k => $name){
$zz_id = $name['zhuanzhang_id'];
$name_p = $tr -> where('userid='.$zz_id) -> getField('username');
$list[$k]['zz_name']=$name_p;
}
例子二:
public function index(){
$type = I('shop_type');
$msg = M('product');
$msg_shop = M('shopkucun');
$where['s_id']=6;
$arr = $msg_shop-> where($where)-> order("p_id") -> select();
foreach($arr as $v){
$where['p_id']=$v['p_id'];
$msg_detail[] = $msg -> where($where) -> find();
}
$this-> assign('msg_detail',$msg_detail);
$this->display('service');
}
点击查看更多内容
为 TA 点赞
评论
共同学习,写下你的评论
评论加载中...
作者其他优质文章
正在加载中
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦