Commit 8f875ccb by Tobin

dc

parent 66493ff4
......@@ -787,7 +787,7 @@ class Webservice_model extends CI_Model {
FROM region AS REG
INNER JOIN translator_region AS TREG ON (TREG.region_id = REG.id)
WHERE REG.status=1 AND (TREG.language_code='$lang' OR TREG.language_code='EN')
ORDER BY city_name GROUP BY city_id";
GROUP BY city_id ORDER BY city_name";
$result = $this->db->query($sql)->result();
if(count($result)>0){
$res = array('status'=>1,'data'=>array('cities'=>$result));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment