取得不重复字段函数增加排序功能
This commit is contained in:
parent
e8edd24af1
commit
c0bff2427e
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user