<?php require_once __DIR__.'/../includes/functions.php'; $sid=(int)($_GET['state_id']??0); echo '<option value="">City</option>'; foreach(all_rows('SELECT * FROM mj_cities WHERE state_id=? AND is_active=1 ORDER BY name LIMIT 1000',[$sid]) as $c){ echo '<option value="'.e($c['id']).'">'.e($c['name']).'</option>'; }
