i hope you can help i have got this query in a select box who listed all countrys out from database. i checked some solutions from similar questions but its didn't worked for me. how would i do this to keep the selected country selected after page refresh?
<select name="themecat[]" class="ui-widget" id="cb1">
<option value=choose a country>choose a country</option>
<?php
include_once("php_includes/db_conx.php");
$sql = "SELECT countrys FROM countrylist";
$query = mysqli_query($db_conx, $sql);
while ($row = mysqli_fetch_array($query))
{
echo "<option value='{$row['countrys']}'>{$row['countrys']}</option>";
}
?>
</select>