651414d7 by sayhoChun

province, city added

1 parent d6570ba4
...@@ -104,6 +104,29 @@ if (! class_exists("ApiStatic")){ ...@@ -104,6 +104,29 @@ if (! class_exists("ApiStatic")){
104 $reusult=$this->getRow($sql); 104 $reusult=$this->getRow($sql);
105 return $this->makeResultJson("1", "", $result); 105 return $this->makeResultJson("1", "", $result);
106 } 106 }
107
108 function getListOfProvince(){
109 $sql="
110 SELECT `provinceNumber`, `desc`, `abbreviation`
111 FROM tblZipProvince
112 ORDER BY provinceNumber ASC
113 ";
114 $result=$this->getArray($sql);
115 return $this->makeResultJson("1", "", $result);
116 }
117
118 function getListOfCity(){
119 $provinceNumber=$this->req["provinceNumber"];
120
121 $sql="
122 SELECT `cityNumber`, `desc`, `abbreviation`
123 FROM tblZipCity
124 ORDER BY cityNumber ASC
125 ";
126 $result=$this->getArray($sql);
127 return $this->makeResultJson("1", "", $result);
128 }
129
107 130
108 } 131 }
109 } 132 }
......