<li class="has-dropdown">
  <a href="#" data-toggle="dropdown" class="dropdown-toggle menu-item">
    <i class='flag-icon flag-icon-<?php echo $getLangCheck['country_code']; ?>'></i>
  </a>
  <ul class="dropdown-menu">
    <?php
      while ($langCheck=$langAsk->fetch(PDO::FETCH_ASSOC)){
        $langCodeAsk=$db->prepare("SELECT * FROM countries where alpha=:alpha");
        $langCodeAsk->execute(array(
          'alpha' => $langCheck['country_code']
        ));
        $langCodeCheck=$langCodeAsk->fetch(PDO::FETCH_ASSOC);
    ?>
    <li class="dropdown">
      <a href="<?php echo $generalSettingCheck['site_url']; ?>?lang=<?php echo $langCheck['country_code']; ?>" class="dropdown-item <?php  echo $getLangCheck['country_code'] == $langCheck["country_code"] ? 'active' : ''; ?>">
        <i class='flag-icon flag-icon-<?php echo $langCheck['country_code'] ?> mr-2'></i> <?php echo $langCodeCheck['country'] ?>
      </a>
    </li>
    <?php } ?>
  </ul>
</li>
