22. $gh = $_REQUEST['gh'] == "undefined"?'gh_09609b5c87c2':$_REQUEST['gh'];
如果没有传数据为空等于undefined就会使用后面的gh查询
23.将表中重复的记录去掉,使用distinct
24.thinkPHP框架使用lists方法进行查询信息,会有分页信息
$list = $this->lists('order',$map,'id desc');
25.array_column() 函数
返回输入数组中某个单一列的值。
http://www.w3school.com.cn/php/func_array_column.asp
26.PHP array_flip() 函数
用于反转/交换数组中所有的键名以及它们关联的键值
27.SQL SUM() 函数
SUM 函数返回数值列的总数(总额)。
30. between范围:
https://zhidao.baidu.com/question/590082637.html
31.thinkphp怎么打印sql语句:
https://zhidao.baidu.com/question/497670922573973364.html
32.小程序学习:
http://www.jianshu.com/p/5ff074d79f65
33.php学习网址:
http://www.php-z.com/