651414d7 by sayhoChun

province, city added

1 parent d6570ba4
......@@ -104,6 +104,29 @@ if (! class_exists("ApiStatic")){
$reusult=$this->getRow($sql);
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);
}
}
}
......