Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getCities(){
- $cities=array();
- $return='';
- $DBC=DBC::getInstance();
- $query='SELECT city_id, name FROM '.DB_PREFIX.'_city';
- $stmt=$DBC->query($query);
- if($stmt){
- while($ar=$DBC->fetch($stmt)){
- $cities[]=$ar;
- }
- }
- return $cities;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement