取得不重复字段函数增加排序功能

This commit is contained in:
hyzboy 2016-12-11 21:21:06 +04:00
parent e8edd24af1
commit c0bff2427e

View File

@ -369,7 +369,7 @@
{
if(!$sql)return null;
$sql_result=$sql->query("select DISTINCT(".$field.") from ".$table_name);
$sql_result=$sql->query("select DISTINCT(".$field.") from ".$table_name.' ORDER BY '.$field);
$result=array();