Ðåñòîðàíû Óêðàèíû'; include ("inc/nameh.inc"); nameh($nameh); settype($city,'integer'); $db = new TDMysql($mysql_connect); if (!empty($city)) { $reg = new list_region($db); $reg->res_of_city($city); //echo "
"; print_r($reg); echo "
"; } // if city if (empty($city)) { echo '

Ðåñòîðàíû â ãîðîäàõ Óêðàèíû

'; $db->db_query("SELECT DISTINCT(res_reg.city) AS city, city.name FROM res_reg, city WHERE city=city.id ORDER BY city.name"); if ($db->db_select()) { while ($list = $db->db_fetch_array()) {$r[] = '
  • '.$list['name'].'';} echo ''; } // if query } // if !city ?>