Commit 66493ff4 by Tobin

t : city issue fix

parent 81d663e5
...@@ -787,7 +787,7 @@ class Webservice_model extends CI_Model { ...@@ -787,7 +787,7 @@ class Webservice_model extends CI_Model {
FROM region AS REG FROM region AS REG
INNER JOIN translator_region AS TREG ON (TREG.region_id = REG.id) 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') WHERE REG.status=1 AND (TREG.language_code='$lang' OR TREG.language_code='EN')
GROUP BY city_name"; ORDER BY city_name GROUP BY city_id";
$result = $this->db->query($sql)->result(); $result = $this->db->query($sql)->result();
if(count($result)>0){ if(count($result)>0){
$res = array('status'=>1,'data'=>array('cities'=>$result)); $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