Created
May 9, 2017 09:41
-
-
Save phpdever/6012c71724e78891bbc977fce66c6046 to your computer and use it in GitHub Desktop.
关于php循环读取数据表,并对其进行排序无效的问题
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$result = json_decode($json,true); | |
foreach($result['result']['items'] as $key=>$val){ | |
$where['id'] = array('eq',$val['id']); | |
$items = M('item')->where($where)->order('id asc')->select(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment