通过PHP添加选择数据

<select class="form-control" name="city">
              <option value="0">Filter by City</option>
              <?php
              try {
                  $pdo = new PDO(DBCONNSTRING,DBUSER,DBPASS);
                  $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
                $sql = "select geocities.AsciiName from geocities INNER JOIN travelimagedetails ON geocities.GeoNameID = travelimagedetails.CityCode group by geocities.GeoNameID";
                 $result = $pdo->query($sql);
                while ($row = $result->fetch()) {
                    echo '<option value="'.$row['AsciiName'].'>';
                    echo $row['AsciiName'].'</option>';
                   }
                  $pdo = null;
              }
               catch (PDOException $e) {
                   die( $e->getMessage() );
              }
              ?>
           </select>
          </div>

OutPut

当我删除第一个PHP标记时,一切正常 但是当我添加它时,一切都会下降