651414d7 by sayhoChun

province, city added

1 parent d6570ba4
......@@ -105,6 +105,29 @@ if (! class_exists("ApiStatic")){
return $this->makeResultJson("1", "", $result);
}
function getListOfProvince(){
$sql="
SELECT `provinceNumber`, `desc`, `abbreviation`
FROM tblZipProvince
ORDER BY provinceNumber ASC
";
$result=$this->getArray($sql);
return $this->makeResultJson("1", "", $result);
}
function getListOfCity(){
$provinceNumber=$this->req["provinceNumber"];
$sql="
SELECT `cityNumber`, `desc`, `abbreviation`
FROM tblZipCity
ORDER BY cityNumber ASC
";
$result=$this->getArray($sql);
return $this->makeResultJson("1", "", $result);
}
}
}
......