order('`order` desc,`id` desc')->limit(0,10)->select(); foreach($left_type as&nbs"/> order('`order` desc,`id` desc')->limit(0,10)->select(); foreach($left_type as&nbs">
Home >Backend Development >PHP Tutorial >thankphp里面双循环如何写
thankphp里面双循环怎么写
$left_type = M('type')->where("`pid`='2'")->order('`order` desc,`id` desc')->limit(0,10)->select();
foreach($left_type as $v){<br /> $left_goods = M('goods')->where("`pid`='$v[id]'")->order('`order` desc,`id` desc')->limit(0,10)->select();<br />}