Guest User

Untitled

a guest
Jan 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. $resulturl=mysql_query("SELECT title, friendly_url_path, id
  2. FROM pmd_v2_locations
  3. WHERE level =4
  4. AND friendly_url_path LIKE 'United-States/arkansas%'
  5. ORDER BY title");
  6.  
  7. $mylist = array(
  8.    'countires' = array(),
  9.    'states' = array(),
  10.    'cities' = array(),
  11. );
  12. while (  $rowl = mysql_fetch_array($resulturl) )  
  13. {              
  14.    list ($country, $state, $country, $city) = explode("/",  $rowl['friendly_url_path']);
  15.    $mylist['countries'][] = $country;
  16.    $mylist['states'][] = $state;
  17.    $mylist['cities'][] = $city;
  18. }
Add Comment
Please, Sign In to add comment