651414d7 by sayhoChun

province, city added

1 parent d6570ba4
...@@ -105,6 +105,29 @@ if (! class_exists("ApiStatic")){ ...@@ -105,6 +105,29 @@ if (! class_exists("ApiStatic")){
105 return $this->makeResultJson("1", "", $result); 105 return $this->makeResultJson("1", "", $result);
106 } 106 }
107 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
130
108 } 131 }
109 } 132 }
110 133
......