function City($id) {
$CityQuery = Query( 'select * from city order by name asc' );
while ($City = mysql_fetch_assoc( $CityQuery )) {
if ($City) {
echo '
if ($City['id'] == $id) {
echo ' selected="selected" ';
echo ' value="';
}
$City[id];
}
echo'"' ;
echo '">';
echo $City[name];
echo '';
}}