pastorandy
IS-IT--Management
I have this which pulls a country select box:
How would I set a default country?
Code:
<?
$query_country = "SELECT * FROM country";
$result_country = mysql_query($query_country) or die (mysql_error());
echo "<select name = country>";
while ($row2 = mysql_fetch_array($result_country))
echo "<option value = '$row2[country_name]'>$row2[country_name]</option>";
}
} echo "</select>";
?>
How would I set a default country?